Skip to content

docs(tools): clarify terminal background waits - #89941

Open
teknium1 wants to merge 1 commit into
mainfrom
kilocode-port/background-wait-guidance
Open

docs(tools): clarify terminal background waits#89941
teknium1 wants to merge 1 commit into
mainfrom
kilocode-port/background-wait-guidance

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

Terminal tool instructions now clearly route fixed waits to foreground commands and reserve background mode for independently running processes.

Source

Ported from Kilo-Org/kilocode#13224: Kilo-Org/kilocode#13224

Changes

  • tools/terminal_tool.py: clarify that background=true is only for processes that continue independently, and that sleep/timers/cooldowns should run as normal foreground commands with sufficient timeout.
  • tests/tools/test_terminal_tool.py: lock the schema wording so the guidance stays visible in the tool description.
  • docs/pr-infographics/kilocode-background-wait-guidance.svg: attach the required PR infographic locally because FAL image generation returned exhausted balance.

Validation

Check Result
python3 -m py_compile tools/terminal_tool.py tests/tools/test_terminal_tool.py passed
scripts/run_tests.sh tests/tools/test_terminal_tool.py 11 passed
Schema E2E with real get_tool_definitions(enabled_toolsets=['terminal']) passed
XML parse for docs/pr-infographics/kilocode-background-wait-guidance.svg passed

Infographic

Terminal waits, clearly routed

Port from Kilo-Org/kilocode#13224: fixed waits belong in foreground terminal calls, while background mode is reserved for independently running processes.
@github-actions

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

૮ >ﻌ< ა ci review

ran on a23296c — docs(tools): clarify terminal background waits

❌ Job failures

Python tests / Run tests slice 12/12 · View job

Job Python tests / Run tests slice 12/12 failed.


Python tests / e2e · View job

Job Python tests / e2e failed.


⚠️ Warnings

CI timings · View report · View job

Wall time 5m56s vs 4m4s (+45.9%). 12 job(s) slower, 12 faster,

  • Python tests / Run tests slice 12/12: +48.0s
  • Python tests / Run tests slice 3/12: +43.0s
  • Python tests / Run tests slice 7/12: +38.0s
  • Python tests / Run tests slice 2/12: +33.0s
  • Python tests / Run tests slice 11/12: -31.0s

OSV vulnerability scan · View job

7 known vulnerabilities found in pinned dependencies.

How to fix:

Review the findings in the Security tab. Update the affected dependencies if a patched version is available.

@alt-glitch alt-glitch added type/docs Documentation improvements tool/terminal Terminal execution and process management P3 Low — cosmetic, nice to have labels Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low — cosmetic, nice to have tool/terminal Terminal execution and process management type/docs Documentation improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants