Skip to content

feat(talk): choose authentication from settings - #142292

Closed
roboclaw-bot wants to merge 2 commits into
openclaw/talk-oauth-android-implementation-20260904from
openclaw/pr138726-split-p-auth-ui
Closed

roboclaw-bot wants to merge 2 commits into
openclaw/talk-oauth-android-implementation-20260904from
openclaw/pr138726-split-p-auth-ui

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #138726

What Problem This Solves

Users need a clear way to select Automatic, OAuth-only or Platform-key-only Talk authentication without unintentionally changing their provider, model, voice or transport.

Why This Change Was Made

Render provider-owned choices from the capability catalog and use the existing configuration draft/save flow. Match canonical and alias inheritance, including an unsaved Automatic choice, rather than replacing selections with local defaults.

User Impact

The Talk settings picker preserves unrelated settings and remains usable when a Talk credential owner is cold. Changes apply through the existing configuration permissions and affect subsequent calls; this does not grant new authentication or mutation authority.

Evidence

  • 82 focused tests passed. Original production fails three targeted regressions. The complete authentication suite is retained in talk-auth.test.ts.
  • Canonical UI source typecheck, ui-pages test graph, declarations, dead exports, Oxlint, Stylelint and formatting passed.
  • Actual Settings → Talk save/reload returns api-key in both picker and runtime resolver with a stateful synthetic Gateway. Explicit selection owns writes; Automatic keeps alias inheritance.
  • Reproduction starts with valid config and reaches the problematic selection through the real draft. It does not claim the Gateway accepted schema-invalid persisted input. Before/after captures have not been visually inspected; visual validation remains open.

Validation source tree: commit 32cbef2c655e607c03c266ac8a3bc765fb6647ed. The local evidence above has its stated scope.

Worked on by:

Expose provider-owned credential choices without rewriting provider, model, voice, transport, agent, or chat selection. Preserve canonical and alias inheritance through real config save and reload.

Worked on by:
- @IWhatsskill

Co-authored-by: IWhatsskill <[email protected]>
@clawsweeper

clawsweeper Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: L maintainer Maintainer-authored PR labels Sep 8, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 8, 2026 15:53
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 8, 2026
@clawsweeper

clawsweeper Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 9, 2026, 6:07 AM ET / 10:07 UTC (Revision 6).

ClawSweeper review

What this changes

Adds a provider-supplied authentication picker to Talk settings while preserving unrelated selections through the existing configuration save flow.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open: this remains a useful, distinct settings improvement absent from current main. The earlier write-target finding is addressed, and no new blocking code defect was found; required visual verification remains outstanding.

Priority: P2
Reviewed head: 32cbef2c655e607c03c266ac8a3bc765fb6647ed

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The implementation is focused and the prior correctness finding is addressed, but visual evidence remains incomplete.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Evidence reviewed 8 items Introduced production behavior: The pinned base-to-head diff adds catalog-driven rendering and writes only the selected provider’s authMethod through the existing draft. Explicit provider selection now determines the write target, addressing the earlier finding.
Configuration inheritance contract: The runtime merges canonical configuration with the explicitly selected provider, or inherits alias defaults during automatic selection. The picker follows this precedence and treats the draft’s absent authentication choice as Automatic instead of restoring stale catalog state.
Current-main and release necessity check: Both fetched main and v2026.9.3 render provider, model, voice, and setup rows without the proposed authentication picker.
Findings None None.
Security None None.

How this fits together

Talk settings configures OpenClaw’s realtime voice calls. The Gateway supplies provider capabilities, and the settings page saves the selected credential method for subsequent calls.

flowchart LR
  A[Provider capabilities] --> B[Gateway Talk catalog]
  B --> C[Talk settings picker]
  D[Existing configuration] --> C
  C --> E[Shared configuration draft]
  E --> F[Authorized save]
  F --> G[Subsequent Talk calls]
Loading

Before merge

  • Resolve merge risk (P1) - The new row’s appearance and retained selection after save/reload have not been verified through inspected before/after captures.
  • Complete next step (P2) - Provide inspected, redacted before/after Settings → Talk captures showing the authentication picker and retained selection after save/reload.
Agent review details

Security

None.

PR surface

Source +69, Tests +391, Docs +6. Total +466 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 4 70 1 +69
Tests 3 562 171 +391
Docs 1 6 0 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 638 172 +466

Review metrics

Metric Value Why it matters
Production versus test growth production +69 net lines; tests and test support +391 net lines Production growth adds the picker and draft integration; most remaining growth covers save/reload and alias inheritance.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the catalog-driven picker and shared configuration owner, coordinated with the authentication-policy prerequisite.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the catalog-driven picker and shared configuration owner, coordinated with the authentication-policy prerequisite.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a feature request; source confirms the curated authentication picker is absent from current main and the latest supplied release.

Is this the best way to solve the issue?

Yes: exposing provider-owned choices through the existing draft/save flow avoids a competing credential resolver or settings store.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 56ec0eb9a451.

Labels

Label justifications:

  • P2: This is a bounded improvement to Talk authentication settings with no established urgent regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.

Evidence

What I checked:

  • Introduced production behavior: The pinned base-to-head diff adds catalog-driven rendering and writes only the selected provider’s authMethod through the existing draft. Explicit provider selection now determines the write target, addressing the earlier finding. (ui/src/pages/config/talk-page.ts:523, 32cbef2c655e)
  • Configuration inheritance contract: The runtime merges canonical configuration with the explicitly selected provider, or inherits alias defaults during automatic selection. The picker follows this precedence and treats the draft’s absent authentication choice as Automatic instead of restoring stale catalog state. (src/plugin-sdk/provider-selection-runtime.ts:88, 32cbef2c655e)
  • Current-main and release necessity check: Both fetched main and v2026.9.3 render provider, model, voice, and setup rows without the proposed authentication picker. (ui/src/pages/config/talk.ts:308, 56ec0eb9a451)
  • Related stack prerequisite: Live REST metadata confirms the pinned head and non-main target branch. fix(talk): honor explicit OpenAI authentication choices #138726 remains open and unmerged; its supplied discussion identifies this PR as the separate settings layer and records acceptance of the authentication modes. (32cbef2c655e)
  • Proof and review continuity: The supplied body binds validation to this head and reports 82 focused tests plus synthetic-Gateway save/reload coverage. It explicitly states that before/after captures have not been visually inspected. The previous completed review at this same head has no findings and retains that specific visual-proof request. No proof files were present in the supplied scratch directory. Tests were not executed during this read-only review. (ui/src/pages/config/talk-auth.test.ts:25, 32cbef2c655e)
  • Existing authorization boundary: The picker delegates to the existing configuration coordinator, which checks config.set permission when scheduling and dispatching saves. The introduced diff adds no credentials, permission grants, provider transport changes, dependency changes, or new persistent format. (ui/src/lib/config/config-write-coordinator.ts:236, 32cbef2c655e)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add inspected, redacted before/after Settings → Talk captures showing the picker and retained selection after save/reload; remove private endpoints and account details. Update the PR body to trigger review, or ask a maintainer for @clawsweeper re-review if needed.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (5 earlier review cycles)
  • reviewed 2026-09-08T16:11:44.735Z sha 7e1d405 :: blocked before merge. :: [P2] Write authentication to an entry the selected provider reads
  • reviewed 2026-09-08T16:51:04.852Z sha 7e1d405 :: blocked before merge. :: [P2] Write authentication to an entry the selected provider reads
  • reviewed 2026-09-08T19:45:06.241Z sha 32cbef2 :: needs changes before merge. :: none
  • reviewed 2026-09-08T20:28:44.410Z sha 32cbef2 :: blocked before merge. :: none
  • reviewed 2026-09-08T21:24:49.475Z sha 32cbef2 :: blocked before merge. :: none

Integrate the reviewed owner-scoped repairs and updated stack prerequisite.
The resulting source tree is identical to the validated private P candidate.
Preserve the original published head as a merge parent; no existing commit is rewritten.

Worked on by:
- @IWhatsskill

Co-authored-by: IWhatsskill <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Sep 8, 2026
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 8, 2026
@openclaw-barnacle openclaw-barnacle Bot closed this Sep 8, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 8, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the gateway Gateway runtime label Sep 8, 2026
@openclaw-barnacle openclaw-barnacle Bot closed this Sep 8, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 8, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Closing this PR in favor of a planned rebuild on current main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants