Skip to content

fix(openai): clarify auth capabilities and SIWC limitations - #160023

Merged
stevenlee-oai merged 2 commits into
mainfrom
dev/stevenlee/siwc-auth-capabilities
Sep 28, 2026
Merged

stevenlee-oai merged 2 commits into
mainfrom
dev/stevenlee/siwc-auth-capabilities

Conversation

@stevenlee-oai

@stevenlee-oai stevenlee-oai commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

OpenAI auth guidance conflates SIWC, OpenClaw Codex OAuth profiles, and a separate native Codex login, and promises SIWC usage controls that OpenClaw does not provide.

User Impact

Operators can choose credentials for chat, images, audio, connected apps, and compaction without being directed to an unsupported auth method. SIWC onboarding and the image tool's auth hint now match the supported routes.

Why This Change Was Made

Follow-up to #159920, which enforced SIWC media capability boundaries. Document those boundaries, native versus OpenClaw credential ownership, hosted-plugin scope requirements, and automatic versus manual compaction. Replace per-instance usage/limit promises with the shared ChatGPT Usage page and explicit OpenClaw limitations.

No configuration, credential-storage, or inference behavior changes.

Evidence

  • After resolving the main-branch conflicts: image tool tests 57 passed and OpenAI manifest tests 14 passed (109.04s total wall).
  • Documentation links: 14,568 checked, no broken links; configuration examples passed.
  • Existing UI fixture updated for the auth hint; browser E2E was not rerun for this text-only fixture change.
  • Independent correctness and maintainability review completed. Autoreview caught the native /compact instruction limitation; the documentation now scopes the focus example to the built-in runtime.
  • The earlier core typecheck and all core test type graphs passed. The broader changed-check run was stopped during the unused-export scan to resolve main-branch conflicts; it is not reported as a full pass. Final focused tests, docs links, formatting, and diff checks passed.

@clawsweeper

clawsweeper Bot commented Sep 28, 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 agents Agent runtime and tooling extensions: openai extensions: codex size: XS labels Sep 28, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed September 27, 2026, 9:56 PM ET / September 28, 2026, 01:56 UTC (Revision 2).

ClawSweeper review

What this changes

The branch revises OpenAI authentication and compaction documentation, setup and image-tool hints, and matching test expectations to explain SIWC limits and separate OpenClaw credentials from native Codex login.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep this PR open. Current main still contains the misleading SIWC guidance, and the prior merge conflict has been resolved. One new image-auth comparison row incorrectly excludes a supported saved-token route.

Priority: P2
Reviewed head: 2ed98f6c3bda4905ab89285637cb322f5f1a2422

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The clarification is well scoped and supported by source review, but one auth-route statement needs correction before merge.
Proof confidence 🌊 off-meta tidepool Not applicable: The changed production surfaces are sign-in choice and image-tool hint text. The PR body reports focused tests and documentation checks rather than a live sign-in or image-tool run; Repository State classifies the author as MEMBER, so the external-contributor proof gate does not apply. No stored-data contract changes.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The changed production surfaces are sign-in choice and image-tool hint text. The PR body reports focused tests and documentation checks rather than a live sign-in or image-tool run; Repository State classifies the author as MEMBER, so the external-contributor proof gate does not apply. No stored-data contract changes.
Evidence reviewed 9 items Introduced guidance: The new comparison row says OpenClaw image generation requires a Codex OAuth profile; the image-tool hint also names OAuth alone.
Supported token route: The image provider accepts compatible OAuth or token profiles, and its focused test sends a Codex image request with a saved token profile.
Token-route test: The existing test expects a Codex token profile to use the Codex Responses image transport and return an image.
Findings 1 actionable finding [P2] Include saved token profiles in image auth guidance
Security None None.

How this fits together

The OpenAI plugin supplies sign-in choices and credential capabilities to setup and agent tools. Its auth policy determines which requests a saved profile can authorize, while documentation and hints explain those choices to users.

flowchart LR
  A[OpenAI sign-in choice] --> B[Saved OpenClaw profile]
  B --> C{Requested capability}
  C --> D[Chat response]
  C --> E[Image or audio tool]
  D --> F[User guidance]
  E --> F
Loading

Before merge

  • Include saved token profiles in image auth guidance (P2) - The new comparison row says image_generate requires an OpenClaw Codex OAuth profile, but the image provider accepts a compatible saved token profile and has a focused test for that transport. Users with an existing token profile would be directed to set up unnecessary OAuth; update this row and the matching image-tool hint. Late discovery: the wording was already present at the earlier reviewed head.
  • Complete next step (P2) - Correct the image-auth guidance and tool hint to include compatible saved token profiles before merge.

Findings

  • [P2] Include saved token profiles in image auth guidance — docs/providers/openai/authentication.md:35
Agent review details

Security

None.

PR surface

Source 0, Tests 0, Docs +40. Total +40 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 3 4 4 0
Tests 3 3 3 0
Docs 5 79 39 +40
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 86 46 +40

Review metrics

None.

Technical review

Best possible solution:

Describe both compatible OpenClaw-saved Codex OAuth and token profiles in image-auth guidance, while preserving the SIWC exclusion and native-login distinction.

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

Yes, from source: the new row requires OAuth while the image provider and an existing focused test support a saved token profile. No runtime test was executed during this read-only review.

Is this the best way to solve the issue?

No. Most of the clarification matches the owning code, but the image-auth wording should include the supported token-profile route.

Full review comments:

  • [P2] Include saved token profiles in image auth guidance — docs/providers/openai/authentication.md:35
    The new comparison row says image_generate requires an OpenClaw Codex OAuth profile, but the image provider accepts a compatible saved token profile and has a focused test for that transport. Users with an existing token profile would be directed to set up unnecessary OAuth; update this row and the matching image-tool hint. Late discovery: the wording was already present at the earlier reviewed head.
    Confidence: 0.96
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.91

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 8a14f266fcc9.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The changed production surfaces are sign-in choice and image-tool hint text. The PR body reports focused tests and documentation checks rather than a live sign-in or image-tool run; Repository State classifies the author as MEMBER, so the external-contributor proof gate does not apply. No stored-data contract changes.
  • remove rating: 🦞 diamond lobster: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P2: This is a bounded but user-facing correction to OpenAI credential guidance.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The changed production surfaces are sign-in choice and image-tool hint text. The PR body reports focused tests and documentation checks rather than a live sign-in or image-tool run; Repository State classifies the author as MEMBER, so the external-contributor proof gate does not apply. No stored-data contract changes.

Evidence

Acceptance criteria:

  • [P1] pnpm test extensions/openai/image-generation-provider.test.ts --maxWorkers=1.
  • [P1] pnpm test extensions/openai/openclaw.plugin.test.ts --maxWorkers=1.
  • [P1] pnpm test src/agents/tools/image-generate-tool.test.ts --maxWorkers=1.
  • [P1] pnpm docs:check-links.
  • [P1] git diff --check.

What I checked:

Likely related people:

  • stevenlee-oai: Raw commit 1067523 adds extensions/openai/model-auth-policy.ts:28 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 106752303d73; files: extensions/openai/model-auth-policy.ts)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Update the comparison row, image-tool hint, and matching expectations to include compatible saved token profiles.

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 (1 earlier review cycle)
  • reviewed 2026-09-28T01:43:50.544Z sha 22e3cc6 :: blocked before merge. :: none

@stevenlee-oai
stevenlee-oai marked this pull request as ready for review September 28, 2026 01:48
@clawsweeper clawsweeper Bot added 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. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@stevenlee-oai
stevenlee-oai merged commit 80714fa into main Sep 28, 2026
288 of 289 checks passed
@stevenlee-oai
stevenlee-oai deleted the dev/stevenlee/siwc-auth-capabilities branch September 28, 2026 03:49
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation extensions: codex extensions: openai P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant