singularity-forge/packages/coding-agent/src
Mikael Hugo ca7368e5f1 fix(bash): add 120s default timeout to prevent autonomous mode hangs
- Add BUILT_IN_DEFAULT_TIMEOUT_SECS = 120 constant to bash tool
- Compute effectiveTimeout = timeout ?? resolvedDefaultTimeout so LLM
  calls without a timeout get the 120s guard automatically
- Add defaultTimeoutSeconds? to BashToolOptions for override at creation
- Dynamic bashSchemaWithDefault describes the actual default in the LLM
  tool description, improving model awareness
- Add BashSettings interface + getBashDefaultTimeoutSeconds() to
  SettingsManager so users can override or disable via settings.json
- Wire defaultTimeoutSeconds into agent-session.ts _buildRuntime()

Root cause: npx sf --help triggered npm package download, hanging for
4+ minutes without timeout, consuming entire autonomous run budget.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-11 19:12:33 +02:00
..
cli sf snapshot: uncommitted changes after 197m inactivity 2026-05-10 15:59:33 +02:00
core fix(bash): add 120s default timeout to prevent autonomous mode hangs 2026-05-11 19:12:33 +02:00
modes refactor: complete rf-01/rf-02/rf-11 blocked todos 2026-05-11 16:45:39 +02:00
resources/extensions/memory fix(lint): fix all pre-existing lint failures 2026-05-11 04:02:31 +02:00
tests feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
types feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
utils fix(lint): fix all pre-existing lint failures 2026-05-11 04:02:31 +02:00
cli.ts refactor: strip internal pi branding (Phase 2A) 2026-05-10 11:50:55 +02:00
config.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
index.ts fix(bash): add 120s default timeout to prevent autonomous mode hangs 2026-05-11 19:12:33 +02:00
main.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
migrations.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00