Skip to content

fix(app): connect independent custom providers and revalidate saves - #2649

Merged
santoshkumarradha merged 10 commits into
app/v3from
feat/app-provider-catalog
Nov 16, 2026
Merged

santoshkumarradha merged 10 commits into
app/v3from
feat/app-provider-catalog

Conversation

@santoshkumarradha

@santoshkumarradha santoshkumarradha commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Summary

Desktop clients can add independent custom servers without replacing another endpoint. Interactive saves prove the current usable model catalog before persisting configuration or adopting credentials.

hello: providers.instances
keys.check(mode=add) -> connection.id + usable models
keys.set(same connection) -> recheck -> collision-safe profile write -> credentials
providers.list / models.list -> independent connection IDs after reopen

Targets app/v3, which owns the desktop handlers. Browser sign-in, qualified routing model IDs and bare offline credential handover stay compatible. The owner approved the screenshots and requested merge.

Evidence

  • Before: the actual desktop fixture exposed custom model rows grouped by routing slug instead of saved connection ID. After: check/list/reopen return the same persisted IDs; the unchanged Rust Engine fixture passes with two authenticated servers, independent models, replacement isolation, empty-model refusal and restart credential handover.

  • Provider wire acceptance covers add, replace, stale-ID collision, final-save revalidation, profile storage retry, region reopen, the exact DeepSeek catalog ID and capability advertisement. Both feature review axes completed and findings were fixed.

  • Updated to current app/v3. Fresh focused command proof passes (17.581s), including all six tests that failed the preceding CI run and stop-check performance guards. Full appwire tests pass (6.833s); make build and Windows command-package vet pass.

  • The prior Windows vet failure was reproduced on exact base 80410d3e6 and fixed with portable process cleanup. Merge-gate repairs also place the stage fixture outside its state folder, join poll/usage fixture producers before directory cleanup, and prevent a newly assigned stopped-job conversation from inheriting a timed no-manager pass. Existing immediate-stop and decode-cost tests failed before and pass afterward.

  • Fresh BASE=origin/app/v3 make pr-ready and CI are running on the updated candidate. No full-gate pass is claimed yet.

  • The structural remote-answer law now gates its ordered predecessor before counting calls, preserving its no-synchronous-call assertion without a scheduler race; 30 focused repetitions pass. Final make test-quick passes, including full native/Windows vet, all structural laws, packed manuals and help/belt checks. Fresh full touched-package CI is pending; full-gate success is not claimed.

Merge Danger

Door: two-way

New custom-instance writes require providers.instances; old clients preserve their legacy behavior. A profile write failure adopts no credentials. The factory stop-admission correction also enforces an existing Stop immediately when a conversation becomes a job manager.

Blast Radius: providers

Desktop companion: https://github.com/Agent-Field/codeaf-desk/pull/451. Parent coordinates the approved merge after checks; no check bypass is authorized.

Final merge-gate regressions

  • The first immediate-stop repair introduced an idle-floor scan: helper allocations grew from 69 at 4 jobs to 605 at 80. Shared floor snapshots now invalidate on directory identity changes instead. The same unchanged caps pass at 3/3 helper allocations and 5/5 manager allocations; immediate stop handover and decode-cost guards pass.
  • The usage-close failure was reproduced with four preceding judge fixtures plus the product Close test (2.473s), then with the original 125-test prefix (39.069s). Those fixtures removed their homes before joining usage writers. Ledger-specific cleanup fixes both sequences (0.411s / 38.706s), preserving the zero-writer assertion. All 21 affected judge/sweep/Close tests pass fresh (0.505s).
  • Final full CI remains required on the current head; no failing check is bypassed.

@santoshkumarradha
santoshkumarradha marked this pull request as ready for review November 16, 2026 03:36
@santoshkumarradha
santoshkumarradha merged commit 04675b9 into app/v3 Nov 16, 2026
9 checks passed
@santoshkumarradha
santoshkumarradha deleted the feat/app-provider-catalog branch November 16, 2026 04:13
santoshkumarradha added a commit that referenced this pull request Nov 16, 2026
AbirAbbas added a commit that referenced this pull request Nov 23, 2026
… (#2883)

app/v3 was landed on dev on 2026-11-11. Five pull requests merged into app/v3 afterwards are now on dev, one commit each in this change:

- connect: GitHub is a connector, and it is the Factory's GitHub (app/v3 #2645)
- fix(app): connect independent custom providers and revalidate saves (app/v3 #2649)
- app: --home is a home the person keeps: other tools' skills, program copies, fence (app/v3 #2819)
- update: an engine inside a macOS app bundle is left to its app (app/v3 #2820)
- update: a desktop app's engine is told to update the app, not to rebuild (app/v3 #2840)

Co-authored-by: Santosh <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
AbirAbbas added a commit that referenced this pull request Nov 24, 2026
Both sides kept in cmd/codeaf/fence.go (dev's OtherCodeafHomes beside santosh's
desk canvas root), dev's wording for the GitHub sign-in paragraphs in the accounts
page, santosh's sections of PROTOCOL.md kept, and the #2649 change entry carries
both lines.
ZeroPoint95 added a commit that referenced this pull request Nov 24, 2026
The #2649 copy on santosh/work carried this; dev's port of #2649 left it out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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