Skip to content

fix(agents): save project agents in session workdir - #229

Merged
co-l merged 1 commit into
co-l:developfrom
SulimanAbdulrazzaq:fix/agent-project-workdir
Aug 10, 2026
Merged

fix(agents): save project agents in session workdir#229
co-l merged 1 commit into
co-l:developfrom
SulimanAbdulrazzaq:fix/agent-project-workdir

Conversation

@SulimanAbdulrazzaq

Copy link
Copy Markdown
Contributor

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:

  • AI Models: GPT-5 (Codex)

Cache Impact

Does this PR affect anything cached — system prompts, tool definitions, skills, or other context?

  • No

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>
@co-l
co-l merged commit 81ffdf3 into co-l:develop Aug 10, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants