Fix Local Agent Execution And Auth Checks

- Gate server requests on available credentials
- Run local child agents directly without a parent run ID
- Include command IDs in Bedrock context and recognize transfer tools
This commit is contained in:
2026-07-28 10:43:59 -05:00
parent 87e0c83e9e
commit a078287f4b
35 changed files with 1078 additions and 237 deletions
@@ -268,6 +268,15 @@ impl AuthState {
self.credentials.read().clone()
}
/// Returns whether requests to authenticated server endpoints can be made.
///
/// Galaxy's local-first experience treats the user as logged in even when no
/// Warp server credentials are configured, so `is_logged_in` is not sufficient
/// for guarding authenticated network requests.
pub fn has_server_credentials(&self) -> bool {
self.credentials.read().is_some()
}
/// Sets the credentials. Should only be called within the auth module.
pub fn set_credentials(&self, credentials: Option<Credentials>) {
*self.credentials.write() = credentials;