Skip to content

fix(tui): keep painting after HITL approval - #361

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/tui-hangs-after-approval
Aug 16, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/tui-hangs-after-approval

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

  • Approved HITL tools no longer run on the TUI event loop, so the UI keeps painting after Allow once / Allow pattern.
  • AgentSession now prepares the approved call, then the TUI executes it in the background and applies the result when it finishes.
  • Adds a regression test that approving a slow command returns before the command completes.

Test plan

  • cargo test --workspace --all-targets --locked
  • cargo test --package forge-tui approving_a_slow_command_returns_before_the_command_finishes -- --nocapture

Approved tool execution no longer blocks the TUI event loop. The
session prepares the call, then the approved command runs in the
background so frames keep painting until the result is applied.

Add a regression test that approving a slow command returns before
the command finishes.
@github-actions
github-actions Bot enabled auto-merge (squash) August 16, 2026 13:18
@github-actions
github-actions Bot merged commit dd61d11 into main Aug 16, 2026
7 checks passed
mohitranka added a commit that referenced this pull request Aug 21, 2026
Approved tool execution no longer blocks the TUI event loop. The
session prepares the call, then the approved command runs in the
background so frames keep painting until the result is applied.

Add a regression test that approving a slow command returns before
the command finishes.
mohitranka added a commit that referenced this pull request Sep 11, 2026
Approved tool execution no longer blocks the TUI event loop. The
session prepares the call, then the approved command runs in the
background so frames keep painting until the result is applied.

Add a regression test that approving a slow command returns before
the command finishes.
mohitranka added a commit that referenced this pull request Sep 11, 2026
Approved tool execution no longer blocks the TUI event loop. The
session prepares the call, then the approved command runs in the
background so frames keep painting until the result is applied.

Add a regression test that approving a slow command returns before
the command finishes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant