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:
@@ -199,7 +199,10 @@ impl HarnessAvailabilityModel {
|
||||
return;
|
||||
};
|
||||
|
||||
if !AuthStateProvider::as_ref(ctx).get().is_logged_in() {
|
||||
if !AuthStateProvider::as_ref(ctx)
|
||||
.get()
|
||||
.has_server_credentials()
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -340,7 +343,10 @@ impl HarnessAvailabilityModel {
|
||||
|
||||
pub fn refresh(&self, ctx: &mut ModelContext<Self>) {
|
||||
// The endpoint queries `user`, which requires auth.
|
||||
if !AuthStateProvider::as_ref(ctx).get().is_logged_in() {
|
||||
if !AuthStateProvider::as_ref(ctx)
|
||||
.get()
|
||||
.has_server_credentials()
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user