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 — fix: keep the old permission-mode constant names as deprecated aliases · Twigpine/zero@0311ffb

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • internal
    • agent
      • types.go
    • sandbox
      • types.go
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎internal/agent/types.go‎

Copy file name to clipboardExpand all lines: internal/agent/types.go
+12-3Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,18 @@ type PermissionAction string
2222
type PermissionDecisionAction string
2323

2424
const (
25-
PermissionModeAuto PermissionMode = "auto"
26-
PermissionModeAsk PermissionMode = "ask"
27-
PermissionModeFullAuto PermissionMode = "full-auto"
25+
PermissionModeAuto PermissionMode = "auto"
26+
PermissionModeAsk PermissionMode = "ask"
27+
PermissionModeFullAuto PermissionMode = "full-auto"
28+
// PermissionModeUnsafe is the former name of PermissionModeFullAuto.
29+
//
30+
// Kept as an alias rather than deleted because this constant is referenced
31+
// across packages and by code that lands independently of this branch, so
32+
// removing it turns an ordinary merge into a compile failure for whoever
33+
// merges second. It is the same value, so behaviour is identical either way.
34+
//
35+
// Deprecated: use PermissionModeFullAuto.
36+
PermissionModeUnsafe = PermissionModeFullAuto
2837
PermissionModeSpecDraft PermissionMode = "spec-draft"
2938
// PermissionModeMemberAuto is a headless mode for swarm/specialist MEMBERS: it
3039
// advertises the in-workspace mutators a member needs to build (write/edit +
Collapse file

‎internal/sandbox/types.go‎

Copy file name to clipboardExpand all lines: internal/sandbox/types.go
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ const (
7171
PermissionModeAuto PermissionMode = "auto"
7272
PermissionModeAsk PermissionMode = "ask"
7373
PermissionFullAuto PermissionMode = "full-auto"
74+
// Deprecated: use PermissionFullAuto. Kept as an alias so code landing
75+
// independently of this branch still compiles after a merge.
76+
PermissionUnsafe = PermissionFullAuto
7477
)
7578

7679
const (

0 commit comments

Comments
0 (0)
You are visitor 01402792 — 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.