Repository navigation
Labels
enhancementNew feature or request
Description
What happened
The TUI's safe-boundary resume has no discovery surface, so the feature is effectively invisible even when it would work:
- No interrupted-session signal at startup. When the attached (or most recent) session has a failed/cancelled run that
/resumecould continue, the TUI shows nothing. The user must already know/resumeexists and guess that it applies. Desktop solves this with an interrupted-turn banner carrying a Safe resume action (use-shell-resume.ts/ AppShell); the TUI has no equivalent. /resumewith no session attached fails raw. In a fresh TUI (no session attached yet),/resumethrows the driver's internalCannot resume before a session starts.as a red error instead of helping the user reach a resumable session.
Reproduced live (with MAKA_RUNTIME_SAFE_BOUNDARY_RESUME=1):
- Provider turn fails with a 502 → exit → relaunch TUI in the same cwd → no indication anything is resumable;
/resumeonly helps if you already switched back to that session via/session. - Fresh TUI, no session attached →
/resume→Error: Cannot resume before a session starts.
How to reproduce
MAKA_RUNTIME_SAFE_BOUNDARY_RESUME=1 makain a project with an existing session- Send a message; have the turn fail (e.g. provider error) or cancel it with Esc
- Relaunch the TUI in the same cwd — observe: no hint that the session has an interrupted run
- In a TUI with no session attached, type
/resume— observe the raw red error
Environment
- Maka version or commit: 944d822 (main, v0.1.11)
- OS and version: Linux x64
- Surface: TUI / CLI
- Node.js version, if running from source: 26.3.0
Expected behavior
- When the current/most-recent session for the cwd has an interrupted run (and the host reports resume available), the TUI shows an informational hint at startup/attach, e.g. "This session has an interrupted run — /resume to continue from the safe boundary." A passive hint is enough; no auto-resume is needed (Desktop owns the auto-resume policy).
/resumewith no session attached opens the session picker (scoped to resumable sessions where the driver reports them) instead of throwingCannot resume before a session starts.
Logs, screenshots, or additional context
- Builds on fix(cli): TUI /resume can never succeed — safe-boundary resume disabled by unset env flag #3505 / PR fix(cli): surface parked /resume plans as informational notices, not errors #3506, which made parked plans render as informational notices; this issue is about the TUI never offering resume in the first place.
- Desktop already implements the discovery half of this story: interrupted-turn banner + Safe resume action + per-reason toast copy via
resumeParkToastCopyin@maka/ui(note: that copy operates on runtime-levelrejectionReasonsand is currently zh-CN-only, while the TUI copy added in fix(cli): surface parked /resume plans as informational notices, not errors #3506 operates on protocol-levelTurnResumeParkReason— sharing or aligning these two copy layers could be part of this work). - Out of scope here: the Phase 3 production reconciler for indeterminate tool side effects (documented as designed-but-unwired in
docs/architecture/runtime-resume-architecture.md) — that is a separate, larger runtime effort.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
me2seeks commentedon Aug 22, 2026
I'm working on this — as the follow-up to #3506, I'll add the startup interrupted-run hint and make /resume with no attached session open the session picker instead of erroring.
mikemikimike commentedon Oct 5, 2026
Implemented in #3582.
The TUI now shows a passive startup hint when a safe-boundary resume is available. Running
/resumewithout an attached session opens a picker of sessions the Runtime Host confirms are resumable. Discovery is bounded, retains candidates found before an incomplete scan, and keeps external-session imports out of the resume flow. The regular/sessionpicker can still attach cwd-backed sessions when resume availability cannot be determined.Validation passed on the pushed head:
npm run build:testnpm --workspace maka-agent run buildnpm run typechecknpm run check:tui-copygit diff --checkThe full npm workspace test suite, Docker-based checks, and Windows platform CI were not run.