Skip to content

Restore the last local chat and place on startup - #1785

Draft
ZeroPoint95 wants to merge 4 commits into
devfrom
codex/restore-last-view
Draft

ZeroPoint95 wants to merge 4 commits into
devfrom
codex/restore-last-view

Conversation

@ZeroPoint95

Copy link
Copy Markdown
Collaborator

Ordinary local codeaf and codeaf chat launches now reopen the active conversation and main place last left from the same launch directory, instead of choosing a recent chat and deciding a fresh greeting. The bookmark is scoped by profile and launch directory, written atomically on navigation and shutdown, and used by both the local engine and in-process startup paths.

Explicit session, picker, headless, and remote launches retain their startup behavior. Missing chats/workspaces and unreadable bookmarks fall back to ordinary startup; setup and takeover screens take precedence. Temporary dialogs, searches, scrolling, task drill-ins, and additional tabs reset. The chat manual and CLI help describe these limits.

The existing completion concurrency tests also needed their command harness updated for the pinned Bubble Tea 2.0.8 compactCmds batch implementation. Their failure reproduced on untouched dev; the repaired harness now actually drives the scheduled readers and the original assertions pass.

Validation: make build; focused persistence/startup/restart and completion regression tests; make pr-ready (all fresh touched packages, including all eight tui3 shards, passed). Real tmux launches against an isolated seeded home restored chat, settings, and home through both the local engine and --no-host, including terminal closure.

@ZeroPoint95
ZeroPoint95 marked this pull request as draft October 6, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant