Skip to content

feat(app): let agents settle and un-settle sessions from chat - #7083

Merged
reachjalil merged 1 commit into
devfrom
feat/settle-sessions-from-chat
Nov 5, 2026
Merged

reachjalil merged 1 commit into
devfrom
feat/settle-sessions-from-chat

Conversation

@reachjalil

Copy link
Copy Markdown
Member

What is this about?

Agents can settle a finished session, or bring it back, when you ask in chat ("settle my finished chats").

What problem does it solve?

Settle was only in the sidebar. Agents could pin, rename and archive sessions but had no way to settle one.

What was the situation before?

Settled state is stored per device in the app, so the engine never sees it, and agents had no command for it.

How is this implemented?

  • New session.settle control action (sessionId, settled) in session-control-actions.ts. It calls the sidebar's settleSession / unsettleSession, so you get the same Undo toast.
  • Same gate as the sidebar: the settledSessions flag and OpenCode v2 workspaces (settleWorkspaceIds), root sessions that aren't archived, and the sidebar's session status. Working sessions return target_working. Sessions waiting on the person return the new target_waiting code.
  • session.list_sessions entries now include settled.
  • The v2 context bridge allows session.settle, and the tool descriptions mention it.

What else changed?

  • target_waiting added to openworkAffordanceFailureCodeSchema.
  • One line in the cross-chat docs.

Release note

You can ask an agent to settle or un-settle your chats.

Evidence

  • Agent settle: not available → session-model-reassignment.test.tsx settles, lists as settled, un-settles, and refuses working, waiting, archived and non-v2 sessions; opencode-v2-session-management.test.ts discovers and forwards session.settle.

Add a session.settle command so an agent can move a finished session to
its workspace's Settled row, or bring it back, the same way the sidebar
does. It follows the sidebar's rules: OpenCode v2 workspaces with
settledSessions on, idle top-level sessions only. Working sessions
return target_working and sessions waiting on the person return the new
target_waiting code. session.list_sessions now reports settled, and the
v2 context bridge allows the command.

Signed-off-by: Jalil <reachjalil@gmail.com>
@mintlify

mintlify Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
differentai 🟢 Ready View Preview Nov 5, 2026, 11:38 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Nov 5, 2026 11:38pm UTC
openwork-den Ready Ready Preview Nov 5, 2026 11:38pm UTC
openwork-diagnostics Ready Ready Preview Nov 5, 2026 11:38pm UTC
openwork-landing Ready Ready Preview, v0 Nov 5, 2026 11:38pm UTC

Request Review

@diff-warden

diff-warden Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Warden: advisory — no major findings

No high or medium security findings and no confidentiality findings.

Warden does not block merging or grant or withdraw approvals. Tests and human review remain separate requirements.

Reviewed 22de8d7ce3b1 · Warden run · Updates after every Warden run.

@reachjalil
reachjalil merged commit e179188 into dev Nov 5, 2026
25 checks passed

This branch was successfully deployed

5 active deployments
Preview – openwork-app — 22de8d7c Deployed Nov 5, 2026 by vercel[bot]
Preview – openwork-landing — 22de8d7c Deployed Nov 5, 2026 by vercel[bot]
Preview – openwork-den — 22de8d7c Deployed Nov 5, 2026 by vercel[bot]
staging - packages/docs — 22de8d7c Deployed Nov 5, 2026 by mintlify[bot]
Preview – openwork-diagnostics — 22de8d7c Deployed Nov 5, 2026 by vercel[bot]
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.

1 participant