Skip to content

fix: echo typed characters in real-time while agent is running#104

Merged
Desperado merged 1 commit into
mainfrom
Desperado/fix-input-visibility-agent
May 16, 2026
Merged

fix: echo typed characters in real-time while agent is running#104
Desperado merged 1 commit into
mainfrom
Desperado/fix-input-visibility-agent

Conversation

@Desperado
Copy link
Copy Markdown
Contributor

Summary

  • Input was completely invisible while the agent worked — users saw only a status line and had to type blind
  • Now each character is echoed live under a input prompt, with real backspace support (\b \b)
  • Enter and Ctrl+C properly advance the cursor off the input line before subsequent output appears
  • Tightened first-keystroke trigger from r != 0x1b to r >= 32 — bare Enter/Ctrl+C no longer flash the status line when nothing was typed

Before:

  ⌨ typing — Enter to queue, Ctrl+C to cancel
[invisible typing]
  ✓ queued [1]: run the login tests again

After:

  ⌨ typing — Enter to queue · Ctrl+C to cancel
  › run the login tests again
  ✓ queued [1]: run the login tests again

Test plan

  • Start the agent on a long-running task, type a message mid-run — characters should appear after
  • Backspace should erase characters visually
  • Enter should confirm with ✓ queued on the next line
  • Ctrl+C should cancel the agent without leaving cursor stranded on the input line
  • Pressing Enter or Ctrl+C before typing anything should not flash the status line

🤖 Generated with Claude Code

Previously keystrokes were silently buffered — users saw a status line
but couldn't see what they were typing until Enter confirmed the queue.

Now each printable character is echoed immediately under the "  › " input
prompt. Backspace erases visually with \b \b. Enter/Ctrl+C advance the
cursor off the input line before subsequent output. The first-keystroke
trigger is tightened to r >= 32 so bare Enter/Ctrl+C no longer flashes
the status line when nothing has been typed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@qualitymaxapp
Copy link
Copy Markdown

qualitymaxapp Bot commented May 16, 2026

✅ QualityMax Pipeline

Gate Result
🔍 AI Review ✅ Clean
🧪 Repo Tests ✅ 298/298 passed (go)
🤖 AI Tests ✅ 28/32 passed

Powered by QualityMax — AI-Powered Test Automation

@Desperado Desperado merged commit d944a62 into main May 16, 2026
6 checks passed
@Desperado Desperado deleted the Desperado/fix-input-visibility-agent branch May 16, 2026 07:21
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