Repository navigation
feat(agents): open an agent chat in a project, defaulting to the agent's own - #453
Merged
Merged
Conversation
edenreich
marked this pull request as ready for review
November 7, 2026 20:43
Contributor
|
🎉 This PR is included in version 0.56.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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
An agent chat can now open in a project. The agent editor gets an optional Project dropdown, which defaults to No project. When you pick an agent, its new chat opens in that project. A folder button in the bar above the composer switches the project, or clears it, before the first message. The bar reads
code-reviewer (<project>), or justcode-reviewerwith no project.The thread, prompts and persistence already handled a chat with both an agent and a project. Only the selection rules and the bar kept them apart.
Changes
backend/src/markdown_agents.rs:projectis a desktop-only frontmatter key, likeworkspace. It is managed by the editor and omitted when blank. The round-trip test now covers both keys.frontend/lib/agents.ts:agentDefaultProjectreturns the agent's project while that project still exists, else none. Covered by a bun test.frontend/store.tsx:selectAgentopens a new agent chat in the agent's default project instead of clearing the project. Re-selecting the agent of the open chat leaves that chat's project alone.saveAgentpasses the saved agent's default, since itsagentsclosure is stale right after reload.frontend/components/AgentEditor.tsx: an optional#agent-projectselect. A saved project that no longer exists shows as "(missing)".frontend/components/Composer.tsx: the agent bar showsagent (project). A newAgentProjectMenu(Choose agent project,No project,Use project <name>) follows theMoveToWorkspacebutton-menu pattern, because the AX e2e driver cannot drive a native select.AGENTS.md: the DOM contract lists the new id and button names.project_agentseed (agent defaulting to the test'scontent_project) andtests/agent-project.yaml, which checks the default, overrides it and sends.Not in this PR: queued prompts and
monitor-sendre-send without the chat's agent (store.tsxsendPrompt(id, text, projects[id])). That bug already affects every agent chat and gets its own PR.Docs follow-up: inference-gateway/docs#1122