Skip to content

fix(tui): scope prompt state to sessions - #40057

Open
opencode-agent[bot] wants to merge 1 commit into
v2from
tui-prompt-state
Open

fix(tui): scope prompt state to sessions#40057
opencode-agent[bot] wants to merge 1 commit into
v2from
tui-prompt-state

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • preserve prompt drafts independently for each TUI session
  • scope up/down prompt history and its persisted JSONL file to the active session
  • keep new-session prompt state separate and prevent history load races from dropping new entries

Testing

  • bun test test/prompt/history.test.ts test/prompt/history-provider.test.tsx
  • bun typecheck

Requested by: @kitlangton (Kit via Slack)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant