Repository navigation
fix: load GitHub connections without a default agent - #139222
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 5, 2026, 1:04 PM ET / 17:04 UTC. ClawSweeper reviewWhat this changesLoads personal and shared GitHub connection status without a default agent, consolidates identity selection, and adds regression coverage and profile documentation. Merge readiness✅ Ready for maintainer review This repair remains necessary: current main and v2026.9.1 still contain the failing agent-selection dependency. No blocking introduced defect was found. Priority: P2 Review scores
Verification
How this fits togetherThe Profile page asks the Gateway for the signed-in person's GitHub connection and the shared system account. The Gateway validates the current profile and returns account metadata for display. flowchart TD
A[Profile settings] --> B[Authenticated status request]
B --> C[Current profile check]
C --> D[Personal connection status]
C --> E[Shared GitHub identity]
E --> F[Credential and author metadata]
D --> G[Connection display]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +5, Tests +43, Docs 0. Total +48 across 4 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep profile-level status independent of agent ownership while sharing credential resolution with the existing agent-aware tools. Do we have a high-confidence way to reproduce the issue? Yes, from source: an authenticated status request with multiple agents and no default throws during agent selection before either account is read. The supplied before/after Gateway run corroborates this; tests were not rerun during review. Is this the best way to solve the issue? Yes. Reusing the shared identity owner removes the incorrect dependency without inventing an agent, changing fleet defaults, or altering agent-tool account precedence. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d2d2594b0d2a. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* commit '3e4becea5e2ce38ede69e8ecf5302805ecbfc09c': refactor: simplify outbound message execution context (openclaw#139107) fix(models): keep ordinary chat selections session-scoped (openclaw#139232) docs: slim root agent instructions and clarify testing scope (openclaw#139236) test(agents): give the sibling-drain completion wait a tolerance on slow runners (openclaw#139176) refactor(workboard): use canonical queries for card-tree writes (openclaw#139106) fix(canvas): recognize versioned macOS nodes (openclaw#138958) fix: load GitHub connections without a default agent (openclaw#139222) fix(memory): explain unsafe legacy host-event path recovery (openclaw#139195) refactor(talk): centralize typed voice session queries (openclaw#139103) fix(cli): preserve command dispatch and structured errors (openclaw#139067) refactor(agents): consolidate reply failure summaries (openclaw#139175) fix(auth): keep an unset default model unchanged during login (openclaw#139218) perf(media): reuse validated attachment read handles (openclaw#139168) refactor(channels): simplify account configuration updates (openclaw#139096) refactor(android): remove unused updater export root (openclaw#139198) fix(gateway): stop admitting post-ready producers during close (openclaw#139092) fix(gateway): expose agent hook completion outcomes (openclaw#139155) fix(config): return the saved configuration after plugin install commits (openclaw#139203) fix(android): reduce repeated retries to unreachable gateways (openclaw#138732)
What Problem This Solves
Fixes an issue where Settings → Profile → GitHub connections fails to load on a Gateway with multiple agents and no default agent. The personal status API takes no agent selection, yet tried to resolve one before reading either account.
Related: #138724. Found during live validation of #138900; this repair applies independently to current main and stable 2026.9.1.
Why This Change Was Made
System GitHub status now resolves the shared account directly and reads Git author facts from the Gateway state directory. The same system identity resolver serves existing agent-aware selection, so native/managed credential precedence remains canonical. Agent tools retain their selected/effective account distinction and workspace-specific author facts. Personal authentication, current-role checks, OAuth, persistence, and protocol shapes are unchanged.
User Impact
People can view and connect My GitHub without selecting an agent or changing the agent roster. Status no longer probes an unrelated agent override or requires its workspace.
Evidence
users.github.status {}before any OAuth grant.users.github.status {}returned personal disconnected and native system unavailable in 287 ms. Gateway shutdown completed cleanly in 103 ms; no OAuth grant or agent workspace was needed.Production change: +61/-56, net +5 lines. This adds an explicit system status owner while consolidating identity selection and parameter types. Tests add 43 lines; docs clarify that profile connections need no agent selection. No schema, configuration, or protocol changes.