mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 16:04:21 +00:00
A Copilot turn only ended on `session.idle`, which Copilot defers until every attached background shell (e.g. `gh pr checks --watch`) exits. The main loop had long gone idle, so the turn showed "Writing…" for hours, messages queued behind it, and Send now on a queued message only cancelled a turn that `session.abort` could not end. - Send now on a queued message steers it into the running turn when the agent supports steering, and falls back to interrupting the turn. - The Copilot shim tracks whether its main loop is busy: Stop on a turn kept open only by background work ends it at once and leaves that work running, and steering then starts a new run instead of joining one. - The Copilot shim reports background shells and agents (`session.tasks.list`) and stops them (`session.tasks.cancel`), so they show as background tasks that can be stopped one by one. Co-authored-by: arookieofc <arookieofc@gmail.com>