You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] text typed during a turn is lost when the agent completes #33
While the agent is working, the user types into the message bar (to steer the
next turn or queue a follow-up). When the agent transitions from working to
completed, that in-progress text is deleted from the message footer and the bar
resets to empty. Anything the user was mid-typing is gone.
Steps to reproduce
Start an interactive sesh session.
Submit a request so the agent is actively working.
While it works, type some text into the message bar.
Wait for the agent to finish (transition to completed).
Expected
The text the user is typing should be preserved in the message bar at all
times, including across the working-to-completed transition. The buffer is the
user's draft and should survive state changes.
Actual
When the turn completes, the input editor is reset and the message bar is
cleared, discarding the partial message the user was composing.
Likely location
The editor buffer is reset in harness/tui.go. beginInput zeroes t.buf
when the editor re-opens (which fires as the prompt re-shows at completion): t.prompt, t.buf, t.pos, t.mask = prompt, nil, 0, mask. That clear is
correct after a submit (endInput), but it also destroys a draft that was
being typed during the turn. The fix likely preserves the current buf/pos
when re-opening the editor at completion rather than unconditionally zeroing
it.
Activity
dispatch: resolve #33
sesh-dispatch commentedon Jun 24, 2026
Dispatch did not finish cleanly (exit 1). See the run log.
dispatch: resolve #33
dispatch: resolve #33