Skip to content

Nod: auto-accept edits by default, and offer Copilot's current models - #611

Merged
scgopi merged 1 commit into
mainfrom
feat/nod-models-auto-edits
Oct 3, 2026
Merged

scgopi merged 1 commit into
mainfrom
feat/nod-models-auto-edits

Conversation

@scgopi

@scgopi scgopi commented Oct 3, 2026

Copy link
Copy Markdown
Owner
Change Detail
Auto-accept edits by default NodSettings.editsInWorktree and the runtime's defaultSettings default to auto on both engines; hunks stay reviewable until the turn ends. Settings files that already store a choice keep it
Copilot models The catalog tracks copilot help config at 1.0.89: 29 models plus Auto, instead of 5. Each tier's default is unchanged (Opus 5.5 / GPT-6 Sol / GPT-5.6 Luna)
graphcode-nod --list-models Calls the Copilot SDK's listModels() for the signed-in account, drops policy-disabled models, prints JSON
App discovery At launch the app loads the cached list, runs --list-models in the background, and merges models the built-in list lacks

The SDK's listModels() answers only auto (twice) for this account, even after a session starts, while claude-sonnet-5, gpt-6-sol and gpt-5-mini all answer when requested. That's why the built-in list stays the base and the SDK's answer only adds to it.

Evidence

RED: NodModelCatalogTests.copilotOffersTheCLIsModelsAndKeepsItsDefaults on origin/main -> fails, the catalog has 5 Copilot models and no auto; bun test listModels.test.ts on main -> fails, CopilotEngine has no listModels
GREEN: xcodebuild test -only-testing NodModelCatalogTests + NodSettingsTests -> exit 0, 16 tests passed; bun test -> 128 pass, 0 fail; tsc --noEmit -> exit 0
REGRESSION: full xcodebuild test -> 2217 tests, only MessageDeliveryTests.aSessionWhoseTaskEndedIsNeverTypedInto fails, identically on main on this Mac; cli and daemon builds exit 0; make check 0 errors; swift-portable exit 0

- Edits in a loop's worktree are auto-accepted by default on both engines
  (NodSettings and the runtime's defaults), and stay reviewable until the turn
  ends. Settings that already store a choice keep it.
- The Copilot catalog tracks copilot help config at 1.0.89 (29 models plus
  Auto) instead of 5; each tier's default is unchanged.
- graphcode-nod --list-models asks the Copilot SDK which models the account may
  use; the app runs it at launch, caches the answer, and merges anything the
  built-in list lacks. The SDK answers only "Auto" for some accounts today,
  which is why the built-in list stays the base.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: scgopi <[email protected]>
@scgopi
scgopi merged commit 3de425d into main Oct 3, 2026
23 checks passed
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