Skip to content

Bug: Interactive Token Source main agent always times out exitCode 3 v0.17.1 #1117

Description

@ajcohan-droid

Summary

Interactive Token Source main agent always times out exitCode 3 v0.17.1

Environment

  • Maestro version: 0.17.1
  • Operating system: macOS (Darwin Kernel Version 25.5.0: Mon Apr 27 20:41:15 PDT 2026; root:xnu-12377.121.6~2/RELEASE_ARM64_T6041, 25.5.0)
  • Install source: Packaged build (release build or locally packaged)
  • Agent/provider involved: Not provided
  • SSH remote execution: Not provided

Steps to Reproduce

  1. Set Token Source to Interactive in Maestro settings.
  2. Open any session (fresh or existing).
  3. Send any query, including a simple one-sentence prompt.
  4. Observe: tab naming subprocess returns correct answer in ~4s; main agent times out at ~302s with exitCode: 3.

Expected Behavior

Main agent should return a response to the user's query when Token Source is set to Interactive mode.

Actual Behavior

Main agent spawns with --permission-mode plan and --append-system-prompt, then exits after exactly ~302 seconds with exitCode: 3 and response: 'undefined'. Occurs on large sessions, fresh sessions, and simple one-sentence queries alike. Stderr shows: 'maestro-p: --print requires a value; ignoring' and 'maestro-p: ignoring --verbose — headless-mode flag, not forwarded to the TUI.'

Additional Context

The tab naming subprocess (uses a different maestro-p invocation path, passes --print without a value) works correctly and returns accurate responses. In session 3ef996e3-fe67-4a8d-8d94-aea1c3ea8481, the tab naming subprocess returned 'Texas' (the correct answer to the main prompt) while the main agent timed out. The answer is being generated but is not captured or returned by the main agent path. Model in use: sonnet[1m]. Tested on Apple Silicon macOS.

Screenshots / Recordings

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixed but needs validationThink we got this, but need help validating.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions