-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
π€ fix: Load Handoff Agents for Agents API #12740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
e9e435b
π€ fix: load handoff sub-agents on OpenAI-compat endpoints (#12726)
danny-avila 5cc74e3
π§ͺ fix: use ServerRequest in discovery spec helpers
danny-avila 7418dd8
πͺ² fix: drop orphan edges on both endpoints, not just `to`
danny-avila e491a23
π fix: enforce REMOTE_AGENT ACL on handoff sub-agents for API routes
danny-avila 7ec1ba2
π§― fix: enforce allowedProviders for discovered sub-agents
danny-avila 4cbfffc
βοΈ fix: prune unreachable sub-agents after orphan-edge filtering
danny-avila e54440b
π fix: don't seed initialize.js agentConfigs from the pre-pruning calβ¦
danny-avila e000354
π¬ fix: address audit findings on discovery helper
danny-avila 6450aa8
π§Ή chore: address audit NITs on discovery helper
danny-avila 4982f1c
πΈ fix: require all sources reachable when traversing fan-in edges
danny-avila 6879f45
π fix: match SDK OR semantics for multi-source edge reachability
danny-avila 222716d
βοΈ fix: strip skipped co-members from multi-source/multi-dest edges
danny-avila 0de3684
π fix: respect SHARE-on-AGENT fallback for handoff ACL on API routes
danny-avila 7cc7aed
π± fix: preserve user-defined parallel-start branches
danny-avila 54de02c
π― fix: tighten parallel-start seed criterion to 'no pre-filter incomiβ¦
danny-avila 6ce3462
π fix: don't enforce AGENT-only file ACL on REMOTE_AGENT API callers
danny-avila 718b000
πͺ fix: strip unreachable co-sources from surviving multi-source edges
danny-avila File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passing
filterFilesByAgentAccessintoinitializeAgenthere makes remote API calls enforceResourceType.AGENTon attached context files (api/server/services/Files/permissions.jsusesresourceType: ResourceType.AGENTat the access check), even though this route authorizes callers withREMOTE_AGENTpermissions viagetRemoteAgentPermissions. A user who hasREMOTE_AGENT_VIEWERbut noAGENT_VIEWcan invoke the shared agent, but all owner-attached context files get filtered out, so tools likefile_search/context-backed retrieval silently stop working for remote consumers; the same regression is also introduced inresponses.jswith the identicaldbMethodswiring.Useful? React with πΒ / π.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right β this was a regression I introduced when I refactored the DB-method bundle into a shared
dbMethodsobject. Fixed in 6ce3462: both API controllers now omitfilterFilesByAgentAccessfromdbMethods(and drop the now-unused import). The in-app chatinitialize.jskeeps it because that path legitimately authorizes at the AGENT level.This restores the pre-refactor API behavior β
primeResourcesseesfilterFiles: undefinedand skips the per-file ACL check, soREMOTE_AGENT_VIEWER-only callers get the owner-attached context files the route'sgetRemoteAgentPermissionshas already decided they can see.