Repository navigation
Closed
Labels
Description
Summary
The Continue as Chat feature (EXEC-023) — the button on the Execution Detail page that reopens a completed execution as an interactive chat via ?tab=chat&resumeSessionId=<claude_session_id> — is reported not working, or at least not working in all use cases. The full path (button → route → forced-legacy chat mode → resume_session_id payload → agent-server --resume) needs systematic testing, and the broken cases fixed.
Context
Reported by the operator: continuing an execution in chat fails in at least some scenarios. The flow crosses several recent changes that make silent breakage plausible:
- The Unified Chat tab (feat(ui): unify Chat + Session into one Chat tab with a session-mode toggle (default on) #1112) made Session mode the default; Continue-as-Chat must force the legacy
ChatPanelvia a transientrouteForcedModewithout rewriting the saved preference — a routing seam that can regress. - Fire-and-forget dispatch (refactor: fire-and-forget dispatch — a hung turn holds zero backend resource #1083) writes the sentinel
claude_session_id='dispatched_async'on async executions — passing that as a resume id would produce a broken resume. - Some executions legitimately have no
claude_session_id(NULL), and headless-task JSONL persistence is only auto-enabled for timeouts > 600s; the session-cleanup reaper also deletes JSONLs outside the keep set — so a resume target may simply no longer exist on the agent. - Non-Claude runtimes (e.g. Codex) lack
--resumecontinuity entirely (Codex harness MVP — pluggable agentic execution engine alongside Claude Code #1187).
Acceptance Criteria
- A documented test matrix covers Continue-as-Chat from each execution source: manual chat/task, schedule, webhook, loop iteration, MCP-triggered, and async-dispatched (refactor: fire-and-forget dispatch — a hung turn holds zero backend resource #1083) executions
- Executions with no usable session (NULL
claude_session_id,dispatched_asyncsentinel, reaped/expired JSONL) either hide the button or fail gracefully with a clear message — never a silent no-op or broken chat - Clicking Continue as Chat lands on the Chat tab in legacy mode with the resume banner shown, and the next message actually resumes the execution's Claude session (verified end-to-end, with evidence)
- The forced-legacy mode does not overwrite the user's saved chat-mode preference (
localStorage['trinity.chatMode']) - Button is hidden or clearly unsupported for runtimes without resume support (Codex)
- Broken cases found by the matrix are fixed or split into follow-up issues, each traced back to this one
Technical Notes
Key files in the path:
src/frontend/src/views/ExecutionDetail.vue— Continue as Chat button (EXEC-023), passesresumeSessionId: execution.claude_session_idsrc/frontend/src/views/AgentDetail.vue—resumeSessionIdfrom route query;routeForcedModeforces legacy chat modesrc/frontend/src/components/ChatPanel.vue— resume banner, sendsresume_session_idin the task payloadsrc/backend/routers/chat.py,src/backend/services/task_execution_service.py— backend pass-throughdocker/base-image/agent_server/routers/chat.py+ runtime adapters — actual--resumeinvocationdocker/base-image/agent_server/services/jsonl_recovery.py/src/backend/services/session_cleanup_service.py— JSONL persistence + reaping rules that determine whether a resume target still exists
Activity
obasilakis commentedon Jul 17, 2026
/claim
github-actions commentedon Jul 17, 2026
Claimed by @obasilakis. Label
status-in-progressadded.Next steps:
feature/1672-<short-slug>Fixes #1672fix(chat): Continue-as-Chat resume — close the IDOR and the KeepAlive…
feat(workspace): absorb the Session surface, with continuity parity (…
fix(agents): apply the ?tab= deep-link before the mount awaits (#2130) (
fix(ui): deep-link to every tab the viewer can see, by deleting the s…
refactor(chat): split routers/chat.py into thin handlers + bounded se…
fix(perf): Agent Detail + Workspace stop over-fetching — dedupe, batc…
fix(security): X-Source-Agent is authoritative only for a principal t…
feat(payments): shared paid-turn orchestrator + payments-py 1.18.0 pi…