When gaia docker triggers a path-access security check, the interactive prompt is mangled. Option labels render with the first character missing (Yes / No / Always becomes es / o / lways), and the prompt re-renders mid-execution between the spinner ticks, eating the user's first keypress.
Reproduction
⚠️ SECURITY WARNING: Agent is attempting to access a path outside allowed directories.
Path: C:\Users\tomas\src\test\t1
Allowed: ['C:\\Users\\tomas\\src\\amd\\gaia']
Allow this access? es / o / lways:
⠙ Executing analyze_directory
Please answer 'y', 'n', or 'a'.
Allow this access? es / o / lways:
⠦ Executing analyze_directory
Likely cause
Async spinner / progress indicator is racing with the input prompt's stdout writes, and stdin reads are getting clobbered. User had to type quickly to escape.
Fix
Pause the spinner while the prompt is awaiting input. Render the option labels in a single write call. Worth checking other interactive paths for the same race (related to #3's "input handling under async execution" pattern).
Severity rationale
P2 — affects any user hitting a gaia docker security prompt; bypassable with fast typing but visibly broken.
When
gaia dockertriggers a path-access security check, the interactive prompt is mangled. Option labels render with the first character missing (Yes / No / Alwaysbecomeses / o / lways), and the prompt re-renders mid-execution between the spinner ticks, eating the user's first keypress.Reproduction
Likely cause
Async spinner / progress indicator is racing with the input prompt's stdout writes, and stdin reads are getting clobbered. User had to type quickly to escape.
Fix
Pause the spinner while the prompt is awaiting input. Render the option labels in a single
writecall. Worth checking other interactive paths for the same race (related to #3's "input handling under async execution" pattern).Severity rationale
P2 — affects any user hitting a
gaia dockersecurity prompt; bypassable with fast typing but visibly broken.