Repository navigation
feat(tui): resolve human-in-the-loop approvals inline in the transcript - #262
Merged
Merged
Conversation
Replace the docked approval card with a transcript-native flow: the pending tool call renders as a full-payload inline item (redacted command, cwd, env delta, resolution hint), and operators answer it by typing in the composer. - Add ChatItem::ApprovalPending with command/cwd/env render arm - Parse typed verbs in the composer: yes|approve|y, remember, always|allow, no|deny|n, and no <note> (greedy tail feeds the agent as tool feedback) - Unrecognized lines keep the operator's text in the input box for editing - remember persists a session-scoped exact-invocation allow (Direct tools only); always persists the suggested allow pattern to the permissions file - Delete ApprovalCardWidget, approval card key handling, mouse hit regions, dock-height shrink, and overlay key gating (ApprovalOverlayState retained for identity matching and auto-allow logic) - Show approval verb hint in the contextual hint while waiting Closes #260
mohitranka
added a commit
that referenced
this pull request
Aug 21, 2026
…pt (#262) Replace the docked approval card with a transcript-native flow: the pending tool call renders as a full-payload inline item (redacted command, cwd, env delta, resolution hint), and operators answer it by typing in the composer. - Add ChatItem::ApprovalPending with command/cwd/env render arm - Parse typed verbs in the composer: yes|approve|y, remember, always|allow, no|deny|n, and no <note> (greedy tail feeds the agent as tool feedback) - Unrecognized lines keep the operator's text in the input box for editing - remember persists a session-scoped exact-invocation allow (Direct tools only); always persists the suggested allow pattern to the permissions file - Delete ApprovalCardWidget, approval card key handling, mouse hit regions, dock-height shrink, and overlay key gating (ApprovalOverlayState retained for identity matching and auto-allow logic) - Show approval verb hint in the contextual hint while waiting Closes #260
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
…pt (#262) Replace the docked approval card with a transcript-native flow: the pending tool call renders as a full-payload inline item (redacted command, cwd, env delta, resolution hint), and operators answer it by typing in the composer. - Add ChatItem::ApprovalPending with command/cwd/env render arm - Parse typed verbs in the composer: yes|approve|y, remember, always|allow, no|deny|n, and no <note> (greedy tail feeds the agent as tool feedback) - Unrecognized lines keep the operator's text in the input box for editing - remember persists a session-scoped exact-invocation allow (Direct tools only); always persists the suggested allow pattern to the permissions file - Delete ApprovalCardWidget, approval card key handling, mouse hit regions, dock-height shrink, and overlay key gating (ApprovalOverlayState retained for identity matching and auto-allow logic) - Show approval verb hint in the contextual hint while waiting Closes #260
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
…pt (#262) Replace the docked approval card with a transcript-native flow: the pending tool call renders as a full-payload inline item (redacted command, cwd, env delta, resolution hint), and operators answer it by typing in the composer. - Add ChatItem::ApprovalPending with command/cwd/env render arm - Parse typed verbs in the composer: yes|approve|y, remember, always|allow, no|deny|n, and no <note> (greedy tail feeds the agent as tool feedback) - Unrecognized lines keep the operator's text in the input box for editing - remember persists a session-scoped exact-invocation allow (Direct tools only); always persists the suggested allow pattern to the permissions file - Delete ApprovalCardWidget, approval card key handling, mouse hit regions, dock-height shrink, and overlay key gating (ApprovalOverlayState retained for identity matching and auto-allow logic) - Show approval verb hint in the contextual hint while waiting Closes #260
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the docked approval card with a transcript-native HITL flow. Pending tool calls render as full-payload inline items, and operators answer by typing verbs in the composer.
Changes
ChatItem::ApprovalPendingshows redacted command,cwd:,env:delta, and ayes | no | remember | always | no <note>hint line.input_route::parse_approval_line, active only whileWaitReason::Approval):yes|approve|y— approve onceremember— approve + session-scoped exact-invocation allow (Direct tools only)always|allow— approve + persist suggested pattern (permanent)no|deny|n— deny;no <note>— deny with feedback to the agentnoiseis unrecognized, no prefix matchingcontextual_hint()shows⏸ approval · yes | no | remember | always | no <note>while waiting (scroll-surviving).ApprovalCardWidget,ApprovalStage, card key handling, mouse hit regions, dock-height shrink, overlay key gating all removed.ApprovalOverlayStatekept (minussource/focus machinery) for identity matching and pattern auto-allow.Tests
set_pending_hitl+ typed submit): remember expiry across sessions, env/cwd sensitivity, shell remember ineligibility, deny-with-feedback reaching the agent, pattern persistence via redirectedHOME, duplicate-resolution idempotence.cargo fmt --check,cargo clippy --workspace --all-targets -D warningsclean.Known pre-existing failures (unrelated, env/fixture)
forge-configpermission tests reading the developer's realpermissions.toml.forge-connectoauth_fixture_connectsfixture model-label drift (grok-3vsgrok-4.20-0309).Closes #260