Skip to content

tui: render HITL approval inline instead of as a blocking overlay - #191

Merged
github-actions[bot] merged 1 commit into
mainfrom
hitl-inline-approval-card
Aug 3, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
hitl-inline-approval-card

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

  • Phase 1 of the HITL/permission-model redesign (see docs/hitl-permission-model-research.md).
  • Replaces Overlay::Hitl with a standalone TuiApp.approval_card field, docked at the bottom of the scrollback instead of rendered as a centered modal that blanked the transcript.
  • The transcript stays visible and scrollable while a decision is pending; mouse-wheel scroll now passes through even with the card open (clicks elsewhere are still swallowed, matching prior behavior).
  • PolicyDecision::Hitl, ApplyOutcome::Hitl, and the turn pause/resume flow in approvals.rs are unchanged — presentation only, no behavior change.
  • Same decision set and keyboard affordances as before (allow once / allow for session / deny, Enter/Tab/a/s/d/v/Esc), now routed through a dedicated handle_approval_card_key instead of the shared overlay dispatch.

Known gap: docs/forge-design-kit/FORGE-DESIGN.md, which project conventions call for reading before TUI/focus-presentation changes, doesn't exist in this repo. Proceeded by inference from existing theme/overlay conventions per explicit sign-off.

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • cargo test --workspace --all-targets --locked (684 passed in forge-tui, 0 failed workspace-wide)

Replace `Overlay::Hitl` with a separate `TuiApp.approval_card` field,
docked at the bottom of the scrollback instead of a centered modal that
blanks the screen. The transcript above stays visible and scrollable
while a decision is pending. `PolicyDecision::Hitl`, `ApplyOutcome::Hitl`,
and the turn pause/resume flow are unchanged — this is a presentation
change, not a behavior change.

Phase 1 of the HITL/permission-model redesign in
docs/hitl-permission-model-research.md.
@github-actions
github-actions Bot enabled auto-merge (squash) August 3, 2026 06:14
@github-actions
github-actions Bot merged commit e5180c8 into main Aug 3, 2026
7 checks passed
mohitranka added a commit that referenced this pull request Aug 21, 2026
…ay (#191)

Replace `Overlay::Hitl` with a separate `TuiApp.approval_card` field,
docked at the bottom of the scrollback instead of a centered modal that
blanks the screen. The transcript above stays visible and scrollable
while a decision is pending. `PolicyDecision::Hitl`, `ApplyOutcome::Hitl`,
and the turn pause/resume flow are unchanged — this is a presentation
change, not a behavior change.

Phase 1 of the HITL/permission-model redesign in
docs/hitl-permission-model-research.md.
mohitranka added a commit that referenced this pull request Sep 11, 2026
…ay (#191)

Replace `Overlay::Hitl` with a separate `TuiApp.approval_card` field,
docked at the bottom of the scrollback instead of a centered modal that
blanks the screen. The transcript above stays visible and scrollable
while a decision is pending. `PolicyDecision::Hitl`, `ApplyOutcome::Hitl`,
and the turn pause/resume flow are unchanged — this is a presentation
change, not a behavior change.

Phase 1 of the HITL/permission-model redesign in
docs/hitl-permission-model-research.md.
mohitranka added a commit that referenced this pull request Sep 11, 2026
…ay (#191)

Replace `Overlay::Hitl` with a separate `TuiApp.approval_card` field,
docked at the bottom of the scrollback instead of a centered modal that
blanks the screen. The transcript above stays visible and scrollable
while a decision is pending. `PolicyDecision::Hitl`, `ApplyOutcome::Hitl`,
and the turn pause/resume flow are unchanged — this is a presentation
change, not a behavior change.

Phase 1 of the HITL/permission-model redesign in
docs/hitl-permission-model-research.md.
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