Skip to content

gaia docker security prompt eats first character of each option label #1089

@itomek

Description

@itomek

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcliCLI changesp2low priority

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions