feat(tui): persist exact repo-scoped allow grants#4863
Conversation
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Claude finished @Hmbown's task in 3m 0s —— View job Reviewing PR #4863
SummaryThis is a well-scoped, carefully-guarded feature: approval cards can now save an exact, repo-scoped No provider/model routing code is touched — item 2 of the review checklist doesn't apply to this PR. Correctness — looks solid
Design note (not a bug)
Reuse / duplication
Tests
Housekeeping nit
VerificationI was not able to execute Nothing here blocks merge from a correctness/safety standpoint. |
Let approval cards remember eligible safe shell and file-write approvals as exact allow rules bound to one repository, without weakening deny, ask, or safety-floor precedence. Refs #1186 and #2242. Harvested from PR #4761 by @greyfreedom Co-authored-by: greyfreedom <11493871+greyfreedom@users.noreply.github.com>
Update PTY approval expectations and keep Unix-only process support out of Windows warning builds. Harvested from PR #4761 by @greyfreedom Co-authored-by: greyfreedom <11493871+greyfreedom@users.noreply.github.com>
Assert persisted workspace scopes without assuming platform-specific leading separators. Harvested from PR #4761 by @greyfreedom Co-authored-by: greyfreedom <11493871+greyfreedom@users.noreply.github.com>
Run the POSIX case-distinction regression only on Linux; macOS and Windows intentionally fold paths in the production matcher. Harvested from PR #4761 by @greyfreedom Co-authored-by: greyfreedom <11493871+greyfreedom@users.noreply.github.com>
Rebasing onto current main left select_prev passing the tool name where order_for now takes the whole request, so the branch did not compile. Match select_next, which already passes the request. Also resync crates/tui/CHANGELOG.md from the root slice; the stale copy was what the Version drift gate was actually failing on, not a version mismatch. Receipts: CI's exact clippy invocation clean; codewhale-tui 8340/8340; codewhale-execpolicy 89 unit + 1 doctest; qa_pty 25/25; locale parity PASS and jq empty clean; fmt and diff clean.
|
Rebased onto current Lint / Test (macos, windows) were all the same single compile error, not four independent failures: Version drift was not a version mismatch — @greyfreedom's authorship is preserved on all four substantive commits; only the repair commit is mine. Receipts on the rebased head:
|
843a969 to
7de92d7
Compare
|
Claude finished @Hmbown's task in 1m 50s —— View job Reviewing PR #4863 (post-rebase update)
SummaryThis update is the rebase-repair commit ( The compile fix is correct
Changelog resync is correct
Trivial rebase artifacts — benign
VerificationI could not execute Nothing here blocks merge. My substantive findings from the first review (workspace-scope-is-session-cwd design note, |
No-Issue: partial slice — #1186 and #2242 stay open by design (see Scope boundary below).
Summary
Harvested from PR #4761 by @greyfreedom, rebased onto current
origin/main.deny > ask > allow, safety floors, dangerous-command exclusions, and repo law.@greyfreedom's authorship is preserved on all four substantive commits; only the rebase-repair commit is mine.
Scope boundary — why this is
No-Issueand notCloses #1186The contributor scoped this as a partial slice and that is still accurate. Not included, so both issues stay open:
Marking it
Closeswould close two issues that are only part-done, which is exactly the dishonesty the link gate exists to prevent.Rebase repairs
The branch was 93 commits behind main and had four red checks that were really two problems:
select_prevstill passed&self.request.tool_namewhile this branch changesorder_forto take&ApprovalRequest. Now matchesselect_next.crates/tui/CHANGELOG.mdslice, not a version mismatch. Resynced viascripts/sync-changelog.sh.Verification (macOS, on the rebased head)
cargo clippy --workspace --all-features --lockedwith CI's exact allow set — clean.codewhale-tui— 8340 passed / 0 failed.codewhale-execpolicy— 89 unit + 1 doctest passed / 0 failed.qa_pty— 25 passed / 0 failed, 1 ignored.check-versions.sh— workspace 0.9.1, npm 0.9.1, lockfile in sync.check-tui-locale-parity.pyPASS;jq empty crates/tui/locales/*.jsonclean.cargo fmt --all -- --check,git diff --check,check-coauthor-trailers.py --check-authors— clean.