fix(agents): save project agents in session workdir - #229
Merged
Conversation
Pass the active session project directory through agent CRUD requests so project agents are saved and refreshed in the selected project. Refs co-l#219
co-l
added a commit
that referenced
this pull request
Aug 10, 2026
* fix(agents): scope project saves to workdir Pass the active session project directory through agent store CRUD requests so project agents are saved and refreshed in the project that is actually open, instead of silently falling back to the server process directory. Frontend: - thread session workdir through fetchAgents/fetchAgent/createAgent/ updateAgent/deleteAgent/duplicateAgent via the ?workdir= query param - wire both agent-management entry points (agent selector and agents modal) to pass the current session workdir - add store tests covering workdir propagation (incl. URL encoding) and unchanged global behavior when no workdir is available Closes #219. --------- Co-authored-by: Suliman Abdulrazzaq <suliman9000a@gmail.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Project-scoped agents were being listed from the current session directory, but create, update, delete, duplicate, and refresh requests silently fell back to the server process directory. Propagate the active session workdir through the agent store and both agent-management entry points so project agents are saved and refreshed in the project that is actually open.
Adds focused store tests covering workdir propagation and global-agent behavior.
Closes #219
AI-Enhanced Development
Tell what models helped shape this PR:
Cache Impact
Does this PR affect anything cached — system prompts, tool definitions, skills, or other context?