Skip to content

OpenCode TUI prompt paste silently swallowed — 'Prompt pasted (ready)' logged but text never reaches the input #2192

Description

@atomantic

Found during a live CoS TUI eval (2026-07-04), agent-0a4a6bbf (opencode --model ollama/qwen3.6:35b).

The lifecycle log recorded 📟 Prompt pasted into TUI session ed399073 (ready), but the task text never appears anywhere in the session's raw buffer (grep -c truncateMiddle raw.txt → 0) — OpenCode was still initializing and the paste landed nowhere. The agent sat on the "Ask anything..." home screen for 185s and was reaped idle-complete "success".

Note: in an earlier run the same paste path DID land (prompt text visible in buffer), so the ready heuristic is racy, not always wrong.

Fix: after pasting, verify the pasted text (or a unique prefix of it) actually renders in the TUI buffer before sending Enter; retry the paste with backoff if not. Applies to all TUI kinds, but OpenCode's slower startup makes it the primary victim.

Metadata

Metadata

Assignees

Labels

area:cos-agentsChief-of-Staff autonomous agentsbugSomething isn't workingin-progressClaimed and being workedplanTracked by /do:replan

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions