Skip to content

feat: updated capabilities and save modal flow - #203

Merged
govindavashishtha merged 11 commits into
mainfrom
chore/AGE-1778/save-agent-capabilities-in-the-composer-selector
Aug 13, 2026
Merged

feat: updated capabilities and save modal flow#203
govindavashishtha merged 11 commits into
mainfrom
chore/AGE-1778/save-agent-capabilities-in-the-composer-selector

Conversation

@vinit-truefoundry

@vinit-truefoundry vinit-truefoundry commented Aug 12, 2026

Copy link
Copy Markdown
Contributor
Screenshot 2026-08-12 at 6 36 08 PM Screenshot 2026-08-12 at 6 36 22 PM

Note

Medium Risk
Touches agent write APIs and atomic session coupling (403/404/422 paths), plus a large Save Agent and composer interaction surface where stale spec or flush timing could cause wrong payloads.

Overview
API & SDK: Agent create/update bodies can include optional session_id to update a mutable inline session in the same request; responses may return session_updated_at. OpenAPI also documents redacted-secret PUT semantics for API keys and MCP headers, richer MCP read shapes (auth, auth_status), model list provider, and moves shipped presets from /settings/*/catalog to /api/v1/catalog/*. Session listing is documented as sorted by updated_at with keyset page_token.

Harness / builder: saveAgent sends session_id when provided, returns sessionUpdatedAt, and relies on explicit create/update intent (no pre-save agent list lookup).

UI SDK: Save Agent opens a review modal after flushing the runtime spec: name, instructions, summary rows for model/MCP/skills, capability toggles, and stacked editors reusing shared catalog panels. Successful save calls adoptAgentSpec with the persisted timestamp and rebinds the mutable shell agent. The draft composer uses a Tools (N) control (connectors, skills, capabilities tab), a separate attach button, shared Switch and DraftCatalogProvider nesting, and DraftCatalogProvider at the app shell for Save Agent editors.

Reviewed by Cursor Bugbot for commit 2adeb98. Bugbot is set up for automated code reviews on this repo. Configure here.

@linear

linear Bot commented Aug 12, 2026

Copy link
Copy Markdown

Comment thread packages/frontend/src/harnessBuilderServer.ts Outdated
Comment thread packages/trueforge-ui-sdk/src/atoms/SaveAgentButton.tsx
Comment thread packages/trueforge-ui-sdk/src/atoms/SaveAgentButton.tsx
Comment thread packages/frontend/tests/harnessBuilderServer.test.ts

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b8d1c37. Configure here.

Comment thread packages/frontend/vite.config.ts Outdated
@govindavashishtha
govindavashishtha enabled auto-merge (squash) August 13, 2026 04:58
@govindavashishtha
govindavashishtha merged commit 84773a3 into main Aug 13, 2026
6 checks passed
@govindavashishtha
govindavashishtha deleted the chore/AGE-1778/save-agent-capabilities-in-the-composer-selector branch August 13, 2026 04:58
chiragjn added a commit that referenced this pull request Aug 13, 2026
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