Skip to content

Librarian Agent Timeout on Simple Queries #2997

@L-X-Yao

Description

@L-X-Yao

Librarian Agent Timeout on Simple Queries

Environment

  • OMO Version: Latest (dev branch)
  • OS: Windows (PowerShell)
  • Model: polo-gemini/gemini-3.1-pro-preview

Issue Description

Librarian agent times out on simple web search queries, taking 1+ minutes without completing.

Steps to Reproduce

task(
  subagent_type="librarian",
  load_skills=[],
  run_in_background=true,
  description="Simple web search test",
  prompt="Use web search to query 'What is STM32', answer in one sentence. Do not use gh command."
)

Expected Behavior

  • Complete within 10-30 seconds
  • Return search results from web

Actual Behavior

  • Runs for 1 minute 29 seconds
  • Status shows "running" with last_tool: bash
  • Never completes, must be manually cancelled

Suspected Root Cause

Librarian appears to be attempting gh (GitHub CLI) commands or other unstable tools instead of prioritizing web search, causing the timeout.

Suggested Fix

  1. Add 2-minute timeout for all Librarian tasks
  2. Prioritize websearch tool over gh commands
  3. Implement tool fallback: if gh fails, automatically retry with websearch

Workaround

Explicitly specify tool in prompt:

"Use websearch tool to query XXX, do not use gh command"

Impact

  • Librarian is unusable for external documentation queries
  • Users must manually specify tools, defeating the purpose of agent autonomy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions