Repository navigation
Conversation
…hive one An agent archived its own running session from inside its turn: the app asked the person to confirm Stop and archive, but the bridge mailbox gave up after 5 s with a generic "window did not answer" error, and the dialog could not say who had asked. - session.list_sessions entries and session.read results carry `status` and `working` so agents can check before touching a session. - The Stop-and-archive dialog names the requesting agent session (title and id), or "this session itself" when a session asked to archive itself. - Bridged commands that open a human-only dialog answer at once with the structured code awaiting_user_confirmation and a hint naming target and requester; the dialog stays open for the person. Action-supplied codes and hints now reach the bridge unchanged. - The mailbox fallback message names the confirmation case. Signed-off-by: Guillaume Loret <[email protected]>
…gent
An agent that can start sessions could not stop one. session.stop
{ sessionId } is the Stop button for any loaded session: it aborts the
turn, cancels subtasks and queued messages, and never navigates. Idle
targets return alreadyIdle; unknown ids are a structured error. The
safeguard is attribution: the stop shows "Session stopped: <title>" with
the requesting agent session as a toast and as a notification-center entry
with a View action. Archive semantics are unchanged.
Signed-off-by: Guillaume Loret <[email protected]>
An agent's request must never open a dialog for the person. session.archive on a working session through the agent bridge now returns a structured refusal in the agent's own conversation: target_working (stop it first with session.stop if the user wants it closed, otherwise leave it running) or self_archive_while_working (finish the turn; the reviewer archives). Idle targets archive as before. The awaiting_user_confirmation race is gone. The person's own archive of a working session keeps its confirmation but simplified to the essentials: the session title, one question, Keep session open / Stop and archive. The Requested by row and forensic detail are withdrawn from the dialog; attribution stays on session.stop. Signed-off-by: Guillaume Loret <[email protected]>
… for MDX Signed-off-by: Guillaume Loret <[email protected]>
Split of #4893: this branch keeps everything Warden can self-clear — status and working in session.list_sessions / session.read, the agent path of session.archive that refuses a working target (target_working / self_archive_while_working) instead of opening a dialog, the simplified human confirmation, structured code/hint propagation through the bridge, the mailbox's 5 s message, and the docs. The session.stop control action (Warden 2AY-HF9: stop by id without confirmation, an explicit product decision that needs a human approver) is removed here and re-added in a stacked PR. The target_working hint now sends the agent back to the person instead of to session.stop. Signed-off-by: Guillaume Loret <[email protected]>
…gent Stacked on #4903 (the un-gated half of #4893). Restores the session.stop control action: the Stop button for any loaded session by id, at the same trust level as session.create / session.archive, with no confirmation. Product decision (2026-09-11): the safeguard is attribution, not a gate — "Session stopped: <title> — Requested by <agent session>" as a toast and a notification-center entry with a View action, plus the control narration. Idle -> {ok:true, alreadyIdle:true}; unknown id -> structured error; the target_working hint points agents at session.stop again. This is Warden finding 2AY-HF9 (stop by id without confirmation) and is intentional; it needs one human approving review. Signed-off-by: Guillaume Loret <[email protected]>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Signed-off-by: Guillaume Loret <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
Warden review summary — ClearNative findings: 3. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (114233 ms), confidentiality-review (184413 ms), spec-provenance-review (219601 ms), desktop-den-sync-review (255975 ms), design-spec-review (358376 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
Signed-off-by: Guillaume Loret <[email protected]> # Conflicts: # apps/app/src/react-app/domains/session/sidebar/use-session-archive.tsx # apps/app/tests/session-archive-agent-contract.test.tsx # packages/docs/start-here/do-work-with-it/cross-chat-memory.mdx
Signed-off-by: Guillaume Loret <[email protected]>
Human-grade review (agent-assisted)Reviewed the final signed head
Verification on the final head: exact-SHA Daytona requester and pinned journeys passed 1/1 each with no skips or ref mismatch; local native Electron archive/send pressure passed 1/1 each because those worlds require runner-reachable loopback; four PR-lane contracts passed; targeted app/server tests passed 29/29 and 101/101. The repository-documented root commands The pinned guard also has a revert-fails control: temporarily removing only that guard made the targeted contract red at 28 pass / 1 fail because Exact-head sticky evidence · resolved Warden security thread · final-head approval by A combined private review report could not be uploaded because the available Blob credential is for a public store rather than the review app's private store. No private evidence was copied to the public store; only approved public UI screenshots and the primary sticky evidence are public. |
Signed-off-by: Guillaume Loret <[email protected]>
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (f92eba8178aba9d614788cf180401153cdf40e11). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Test evidence — agents see which sessions are working, an agent's archive of a working session is refused through its own channel while the person keeps a simple confirmation, and session.stop is attributed — ✅ passedSHA f92eba8 · sandbox ref f92eba8 · engine v1 ✅ 0/5 screenshots passed · 0 expectations passed · 0 failed · 0 pending [world] desktop(daytona) · [seed:raw] evalIn() · mock(mcp) · workspace(/tmp/openwork-session-archive-1789623278568-21666-a) · [seed:raw] evalIn() ×25 ⚪ UNVALIDATED — 1. agents see which sessions are working, an agent's archive of a working session is refused through its own channel while the person keeps a simple confirmation, and session.stop is attributed artifact 1
⚪ UNVALIDATED — 2. agents see which sessions are working, an agent's archive of a working session is refused through its own channel while the person keeps a simple confirmation, and session.stop is attributed artifact 2
⚪ UNVALIDATED — 3. agents see which sessions are working, an agent's archive of a working session is refused through its own channel while the person keeps a simple confirmation, and session.stop is attributed artifact 3
⚪ UNVALIDATED — 4. agents see which sessions are working, an agent's archive of a working session is refused through its own channel while the person keeps a simple confirmation, and session.stop is attributed artifact 4
⚪ UNVALIDATED — 5. agents see which sessions are working, an agent's archive of a working session is refused through its own channel while the person keeps a simple confirmation, and session.stop is attributed artifact 5
Test run created 2026-09-17T05:32:33.402Z · Source: |





This PR adds
session.stop { sessionId }: an agent can stop a loaded, live background session by canonical id without a confirmation dialog. The action refuses pinned sessions, missing sessions, idle sessions, requests without an attributed originating session, and the authoritative person-focused session when the requester is another session; a focused session may stop itself. A successful stop interrupts only the target and records who requested it in a toast and notification-center entry with a View action.It does not make archive an unconditional stop path, change person-initiated archive confirmation, add permission-reply handling, or add a confirmation/approval flow to the agent stop path. Agent archive behavior remains owned by #4903; this PR keeps stop as a separate explicit action and preserves the finite main-process transport behavior established in #5074.
Context
#4893 originally combined working-session discovery, the safe agent archive request channel, and cross-session stop. After Warden flagged cross-session interruption as the security-sensitive part, discovery and archive behavior shipped separately in #4903 while this stop capability remained here for explicit review. The final implementation retains the approved no-confirmation behavior while adding unattributed, pinned, focused-other-session, missing, and non-running refusals.
Behavior
Design: reuses existing controls and notifications (P5), never auto-navigates (S5), keeps action/result copy consistent (C2), and includes real-size evidence below (P10).
Screenshots
Successful background stop: the toast names the stopped target and requesting session and offers View without navigating.
Notification Center: the same attribution and View action remain available after the toast.
Pinned refusal: the background target remains in Pinned and keeps running; no stop dialog or interruption occurs. The archive toast is retained from the preceding archive-control step in the same verified journey.
Focused refusal: Chat A remains the person-focused running conversation and the background requester cannot stop it. The archive toast is retained from the preceding archive-control step in the same verified journey.
Verification
Final head:
f92eba8178aba9d614788cf180401153cdf40e11.session-archive-agent-requesterwith strict SHA matchingsession-archive-pinnedwith strict SHA matchingsession-archive-pressuresession-send-pressureses_pinnedstopped successfully instead of returningcode: "pinned"; fixed bytes restored and 29/29 reran greenpnpm typecheckfrom the repository rootpnpm evals:typecheckfrom the repository rootThe changed composer/model fixture command also reproduces four existing composer-continuity failures on clean base
4e680b82e; both branch and control report 28 passed and the same 4 failed signatures. The repository-documented root commandspnpm typecheckandpnpm evals:typecheckpassed locally; the former delegates to the app TypeScript check, while the server typecheck was also run directly. The requester/pinned journeys ran on fresh Daytona Electron at the exact head; the pressure witnesses ran on isolated local source-built Electron because those worlds require runner-reachable loopback pressure.The feature-owned contracts and exact-head journeys are green. Exact-head sticky evidence publishes the primary Daytona journey. Combined private review publication remains unavailable because the available publisher credential targets a public store rather than the review app's private store; no private evidence was copied to the public store.
Recreated from #4904 after GitHub closed that stacked PR when its base branch was deleted.