tact icon indicating copy to clipboard operation
tact copied to clipboard

feat(tact): Allow `tact --resume` without a session ID to open a session picker tui similar to codex

Open N0xMare opened this issue 4 months ago • 0 comments

Problem

tact --resume currently requires the user to provide a complete session ID: tact --resume SESSION_ID

Tact already has a current-workspace session picker under Actions → Resume session, but this functionality is not directly accessible from the command line. Users must either retain raw session IDs or open the normal TUI and navigate through the Actions menu. Seems low complexity to add a session picker that invokes from cli like codex/claude code work already

Proposed solution

Make the session ID optional: tact --resume # Open picker for the current workspace
tact --resume SESSION_ID # Resume directly, preserving existing behavior

Alternatively, introduce a clearer subcommand while retaining the existing flag:

tact resume tact resume SESSION_ID

The implementation should reuse the existing SessionPicker component.

The picker should display:

• Session preview or first prompt. • Last activity time. • Workspace path. • Workspace status, such as available or missing. • A shortened ID, with an action to copy the full ID. • Mouse-click and Enter-to-resume support.

An optional --all view could show sessions from every workspace and provide an entry point for the proposed relocation workflow.

Acceptance criteria

• tact --resume opens the current-workspace picker without requiring an ID. • Existing tact --resume SESSION_ID usage remains compatible. • Users can select sessions using either mouse or keyboard. • Missing-workspace sessions are clearly identified rather than silently omitted. • Session IDs do not need to be manually retained for normal use.

N0xMare avatar Jul 29 '26 16:07 N0xMare