Skip to content

bug: 'Continue as Chat' (EXEC-023) broken or unreliable across use cases — test and validate the full matrix #1672

Closed

Description

@vybe

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:

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_async sentinel, 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), passes resumeSessionId: execution.claude_session_id
  • src/frontend/src/views/AgentDetail.vue — resumeSessionId from route query; routeForcedMode forces legacy chat mode
  • src/frontend/src/components/ChatPanel.vue — resume banner, sends resume_session_id in the task payload
  • src/backend/routers/chat.py, src/backend/services/task_execution_service.py — backend pass-through
  • docker/base-image/agent_server/routers/chat.py + runtime adapters — actual --resume invocation
  • docker/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

  1. added
    priority-p1
    type-bug
    theme-ui-ux
    status-ready
    on Jul 17, 2026
  2. removed
    status-ready
    on Jul 17, 2026
  3. obasilakis commented on Jul 17, 2026

    @obasilakis
    Contributor

    /claim

  4. added
    status-in-progress
    on Jul 17, 2026
  5. github-actions commented on Jul 17, 2026

    @github-actions

    Claimed by @obasilakis. Label status-in-progress added.

    Next steps:

    1. Create branch: feature/1672-<short-slug>
    2. Implement the feature
    3. Open a PR with Fixes #1672
  6. added
    status-in-dev
    and removed
    status-in-progress
    on Jul 17, 2026
  7. removed
    status-in-dev
    on Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority-p1theme-ui-uxtype-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions