GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(tui): full-auto permission mode, and classify local dev servers separately by Vasanthdev2004 · Pull Request #883 · Twigpine/zero

feat(tui): full-auto permission mode, and classify local dev servers separately #883

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
kevincodex1 merged 32 commits into main from split/permission-mode-and-classifier
Nov 24, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

feat(tui): full-auto permission mode, and classify local dev servers separately #883

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1bcb2bf
feat(tui): put unsafe mode in the shift+tab cycle behind a confirm key
Vasanthdev2004 Aug 8, 2026
eda9f30
fix(sandbox): stop classifying local dev servers as network egress
Vasanthdev2004 Aug 8, 2026
dbdd281
refactor: rename the unsafe permission mode to full-auto
Vasanthdev2004 Aug 8, 2026
f608752
fix: keep the old permission-mode constant names as deprecated aliases
Vasanthdev2004 Aug 8, 2026
874db9f
fix: make the full-auto rename reach the values that travel as data
Vasanthdev2004 Aug 9, 2026
30459e1
test(tui): move the plan-mode guard onto advancePermissionMode
Vasanthdev2004 Aug 10, 2026
54613e4
fix(sandbox,cli,tui): keep serving commands gated, and accept the can…
Vasanthdev2004 Aug 11, 2026
714ce64
fix(tui): cancel the full-auto offer when the terminal loses focus
Vasanthdev2004 Aug 19, 2026
1cc95f3
fix(sandbox,tui,cli): close the unparseable network gap and the defer…
Vasanthdev2004 Aug 20, 2026
b75e7cb
fix(tui,sandbox): cancel the offer on a streaming partial, and derive…
Vasanthdev2004 Aug 21, 2026
677b3f0
fix(sandbox): a flagged invocation classifies like its unflagged self…
gnanam1990 Aug 24, 2026
32c3527
fix(sandbox): keep framework builds under the network gate
Vasanthdev2004 Sep 12, 2026
f87a0af
Merge remote-tracking branch 'origin/main' into split/permission-mode…
Vasanthdev2004 Sep 12, 2026
3b52175
fix(tui): keep the full-auto offer visible before ctrl+g can accept it
Vasanthdev2004 Sep 13, 2026
c9d8ac9
Merge origin/main into split/permission-mode-and-classifier
Vasanthdev2004 Sep 15, 2026
89eab02
fix(tui): deliver peer callbacks to the event loop through an ordered…
Vasanthdev2004 Sep 15, 2026
6f228bf
test(cli): isolate user state in the full-auto parity helper and pin it
Vasanthdev2004 Sep 15, 2026
7be8920
fix(tui): only offer full-auto where the footer can show the confirma…
Vasanthdev2004 Sep 15, 2026
9f427ba
Merge remote-tracking branch 'origin/main' into split/permission-mode…
Vasanthdev2004 Sep 21, 2026
8608699
fix(tui): end a full-auto offer on cross-session peer traffic
Vasanthdev2004 Sep 21, 2026
ccc041c
Merge remote-tracking branch 'origin/main' into split/permission-mode…
Vasanthdev2004 Oct 12, 2026
6fce00c
Merge remote-tracking branch 'origin/main' into split/permission-mode…
Vasanthdev2004 Oct 12, 2026
08a8b9f
Merge remote-tracking branch 'origin/main' into split/permission-mode…
Vasanthdev2004 Oct 17, 2026
ad3c77c
chore: follow the Twigpine module path
Vasanthdev2004 Oct 17, 2026
786d4fc
refactor(cli): use PermissionModeFullAuto instead of its deprecated a…
Vasanthdev2004 Sep 24, 2026
65ded9d
Merge remote-tracking branch 'origin/main' into split/permission-mode…
Vasanthdev2004 Oct 17, 2026
5880303
Merge remote-tracking branch 'origin/main' into split/permission-mode…
Vasanthdev2004 Oct 25, 2026
ac14ed9
Merge remote-tracking branch 'origin/main' into split/permission-mode…
Vasanthdev2004 Nov 17, 2026
84afbd8
fix: honor the resolved mode, network inventory, and peer admission d…
jatmn Nov 17, 2026
b4399fd
fix: stop the models.dev refresh from racing test cleanup
jatmn Nov 17, 2026
e212793
fix: preserve network approval for quoted package-manager options
jatmn Nov 17, 2026
535a80b
fix: invalidate full-auto offers at BTW session boundaries
jatmn Nov 17, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
fix: preserve network approval for quoted package-manager options
Keep quoted and escaped option fragments together in the unparseable-command fallback. Verify the network approval decision and cover exact-fit full-auto offers through the real footer and key handler.
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@jatmn
jatmn committed Nov 17, 2026
commit e21279388c18aa8ac2c976c424bfcf139e74e8e3

There are no files selected for viewing

7 changes: 6 additions & 1 deletion 7 internal/sandbox/risk.go
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ import (
"strings"
)

// optionWordPattern keeps quoted and escaped fragments together, including
// when a quoted value is attached to its option with "=". Backslashes can also
// be literal in Windows paths, so the fallback accepts either reading.
const optionWordPattern = `(?:\\[^\r\n]|[^\s"';&|()<>]|"(?:\\[^\r\n]|[^"\r\n])*"|'[^'\r\n]*')+`

// leadingOptionsPattern spans the global options a package manager accepts
// before its subcommand, including the word an option consumes as its value:
// `npm --prefix ./web run dev` and `pnpm -C ./web run dev` are documented usage,
Expand All @@ -19,7 +24,7 @@ import (
// direction this fallback is already documented to favour: it runs only after
// the command was declared too complex to parse, where catching an obvious
// network program matters more than proving exact shell syntax.
const leadingOptionsPattern = `(\s+-{1,2}\S+(\s+\S+)?)*`
const leadingOptionsPattern = `(?:\s+-{1,2}` + optionWordPattern + `(?:\s+` + optionWordPattern + `)?)*`

var (
// destructiveCommandPattern matches the highest-risk shell forms:
Expand Down
38 changes: 38 additions & 0 deletions 38 internal/sandbox/unparseable_network_superset_test.go
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,41 @@ func TestUnparseableFallbackCoversEveryPythonLauncher(t *testing.T) {
})
}
}

func TestPackageManagerOptionsPreserveNetworkApproval(t *testing.T) {
engine := NewEngine(EngineOptions{Policy: Policy{Mode: ModeEnforce, Network: NetworkDeny}})
for _, testCase := range []struct {
name string
command string
wantNetwork bool
}{
{"double quoted fetch", `npm --prefix "./web app" ci`, true},
{"quoted Windows path", `npm --prefix "C:\work\web app" ci`, true},
{"single quoted fetch", `npm --prefix './web app' ci`, true},
{"escaped space", `npm --prefix ./web\ app ci`, true},
{"attached quoted value", `npm --prefix="./web app folder" ci`, true},
{"quoted value before serving", `pnpm --silent -C "./web app" run dev`, true},
{"valueless flag", `npm --silent ci`, true},
{"local version check", `npm --prefix "./web app" --version`, false},
} {
t.Run(testCase.name, func(t *testing.T) {
unparseable := `if "%OS%"=="Windows_NT" (` + testCase.command + ") else (true)"
if AnalyzeCommand(testCase.command).TooComplex || !AnalyzeCommand(unparseable).TooComplex {
t.Fatal("expected the standalone command to parse and the conditional to use the fallback")
}
for _, command := range []string{testCase.command, unparseable} {
decision := engine.Evaluate(t.Context(), Request{
ToolName: "bash",
SideEffect: SideEffectShell,
PermissionGranted: true,
Args: map[string]any{"command": command},
})
network := HasRiskCategory(decision.Risk, "network")
prompt := decision.Action == ActionPrompt && decision.Reason == ReasonNetworkBlocked
if network != testCase.wantNetwork || prompt != testCase.wantNetwork {
t.Errorf("%q: network=%v, decision=%s (%s), want network approval=%v", command, network, decision.Action, decision.Reason, testCase.wantNetwork)
}
}
})
}
}
3 changes: 3 additions & 0 deletions 3 internal/tui/permission_mode_offer_test.go
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ func TestConfirmOnlyCommitsAnOfferTheFooterShowed(t *testing.T) {
// ctrl+g cannot. Wider and pet-free layouts are the controls, so the rule
// cannot pass by refusing confirmation everywhere.
func TestOfferConfirmsOnlyWhereTheFooterShowsItsKey(t *testing.T) {
chipWidth := ansi.StringWidth(" ● " + unsafeOfferLabel)
for _, testCase := range []struct {
name string
width int
Expand All @@ -254,6 +255,8 @@ func TestOfferConfirmsOnlyWhereTheFooterShowsItsKey(t *testing.T) {
{"24 columns with a docked pet", 24, true, false},
{"30 columns with a docked pet", 30, true, false},
{"30 columns without a pet", 30, false, true},
{"offer chip fits exactly without a pet", chipWidth, false, true},
{"offer chip fits exactly with a docked pet", chipWidth + petReservedColumns, true, true},
{"96 columns with a docked pet", 96, true, true},
} {
t.Run(testCase.name, func(t *testing.T) {
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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.
You are visitor 01402809 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.