v2.5.29 — AskUser Fix
What's new
Fix: AskUser tool no longer crashes runcode
When the agent used the AskUser tool in Ink UI mode, runcode crashed. Root cause: readline.createInterface on stdin conflicted with Ink's raw-mode stdin ownership.
Fix: Added onAskUser callback to ExecutionScope and AgentConfig. When running in Ink UI mode, AskUser questions are now routed through a proper Ink dialog (cyan question box with TextInput) instead of readline.
What it looks like now:
╭─ Question ─────────────────────────────
│ What language should I use?
│ 1. TypeScript
│ 2. Python
│ 3. Go
╰─────────────────────────────────────
answer>
The main input box is blocked while the dialog is active (same pattern as the permission dialog).
Also in this release
- AskUser added to auto-allow list — no permission prompt before asking a question
- Non-interactive fallback preserved for piped/scripted mode