Commit graph

11 commits

Author SHA1 Message Date
Simon Klee
cff1c6f333
cli: recover pending questions from plan_exit tool
The question recovery path only matched the "question" tool, so
plan_exit prompts would get stuck when the question.asked event
was missed during reconnection. Extend recovery to match any
tool-owned question request and drop the tool-name guard in
syncQuestion so completions clear the footer correctly.
2026-05-18 15:23:34 +02:00
Simon Klee
f7493d41cb
tui: dismiss question when tool part ends
Questions remained visible after the underlying tool call
completed or errored because nothing removed them from the
store. Clear each question once its associated tool part
reaches a terminal state, and fix recovery to preserve
correct blocker priority across all active questions.
2026-05-18 10:09:06 +02:00
Simon Klee
f2f8efa411
cli: fix question recovery matching wrong session
The recovery logic matched questions by checking if the list was
non-empty, which caused it to pick up stale questions from earlier
turns. When a re-ask fired, the wrong question could resolve the
blocker, leaving the real question undelivered and the process stuck.

Match questions by messageID and callID from the originating tool part
so only the correct question unblocks the prompt.

Fixes #27503
2026-05-18 10:09:06 +02:00
Sebastian
0f31fd631b
Fix multiline mentions (#27649) 2026-05-15 23:04:20 +02:00
Sebastian
d6367853ae
Add TUI notifications and attention sounds (disabled by default) (#26980) 2026-05-13 03:26:25 +02:00
Simon Klee
8f05bbfaa6
prompt: fix cursor math for wide characters (#27017)
String.length counts code points, not display columns, so CJK
characters and emoji that occupy two terminal cells caused
misaligned cursors, broken mention triggers, and incorrect
history restoration offsets.

Use Bun.stringWidth for now, we need an alternative for this.

Fix #26716
Close #26922
2026-05-12 11:45:28 +02:00
Sebastian
a0fc27e424
flatten to keybind compatible config (#26421) 2026-05-09 01:29:13 +02:00
opencode-agent[bot]
9e7f7bf8e4 chore: generate 2026-05-08 17:46:57 +00:00
Simon Klee
4d43d584fe
cli/run: switch to global event stream (#26383) 2026-05-08 19:44:31 +02:00
opencode-agent[bot]
ac7a885ae9 chore: generate 2026-05-08 10:18:22 +00:00
Simon Klee
7f2b5ee8c2
feat(opencode): add interactive split-footer mode to run (#23557) 2026-05-08 12:17:14 +02:00