Skip to content

fix(tui-v2): /continue命令导致丢失新会话记录#552

Open
AiHyo wants to merge 1 commit into
lsdefine:mainfrom
AiHyo:fix/tui-v2-continue-preserve-current-log
Open

fix(tui-v2): /continue命令导致丢失新会话记录#552
AiHyo wants to merge 1 commit into
lsdefine:mainfrom
AiHyo:fix/tui-v2-continue-preserve-current-log

Conversation

@AiHyo
Copy link
Copy Markdown

@AiHyo AiHyo commented Jun 1, 2026

Context

In tui v2, a newly started conversation disappears from recoverable history after switching to another session with /continue.

The active conversation log is stored on agent.log_path, but reset_conversation() was snapshotting the PID-based fallback path instead. As a result, when /continue reset the current conversation before restoring the selected session, the newly started conversation was not preserved.

Fix

Use the agent's active log_path when snapshotting the current conversation before reset, while keeping the existing PID-based path as the fallback for older callers.

Validation

Completed local testing with tui v2: started a new conversation A, switched to conversation B with /continue, then used /continue again and confirmed conversation A remained recoverable.

@AiHyo AiHyo changed the title fix(tui-v2): keep new conversation recoverable after /continue switch fix(tui): 在 tui-v2 丢失当前会话记录 Jun 2, 2026
@AiHyo AiHyo force-pushed the fix/tui-v2-continue-preserve-current-log branch 2 times, most recently from 8b13183 to 93e79ff Compare June 4, 2026 06:37
@AiHyo AiHyo force-pushed the fix/tui-v2-continue-preserve-current-log branch from 93e79ff to dc9c14a Compare June 4, 2026 06:46
@AiHyo AiHyo changed the title fix(tui): 在 tui-v2 丢失当前会话记录 fix(tui-v2): /continue命令导致丢失新会话记录 Jun 4, 2026
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