Skip to content

fix(tui): run built-in login in-process so a same-session auth resumes - #201770

Closed
wangmiao0668000666 wants to merge 3 commits into
openclaw:mainfrom
wangmiao0668000666:fix/tui-auth-refresh-after-login
Closed

wangmiao0668000666 wants to merge 3 commits into
openclaw:mainfrom
wangmiao0668000666:fix/tui-auth-refresh-after-login

Conversation

@wangmiao0668000666

@wangmiao0668000666 wangmiao0668000666 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A local TUI /auth login saves the credential and reports auth flow finished for <provider>, then the very next turn in that same session fails with Secret owner account:[...,github-copilot:github] is configured but unavailable (secret reference was not materialized by the active runtime). A fresh openclaw process using the same saved credential chats fine. The TUI only works again after a restart.

Fixes #201751

Why This Change Was Made

Two compounding defects:

  1. The login ran as a child process. tui.ts spawned a separate openclaw models auth login process. That child could not acquire the gateway state ownership the TUI already holds, so it failed with OpenClaw state database is busy... holder <tui-pid>, and the login could not publish its credential into the running session at all. A same-session auth could therefore never resume — only a restart worked.

  2. Even when the credential was persisted, nothing republished it. oauth.ts published requires the stored profile to be present in getRuntimeAuthProfileStoreSnapshotCore(agentDir). For a profile saved after the session's snapshot was prepared, that snapshot is the pre-login generation, so published is false and the resolver throws SecretSurfaceUnavailableError with reason secret reference was not materialized by the active runtime — the reported message. The old code cleared the published generation and hoped a retained runtime would rebuild it, but nothing triggered the rebuild when the write happened in the same process tree rather than through an observed file event.

The fix runs the built-in login in-process (sharing the TUI's state owner and embedded runtime) and rebuilds the published auth generation at the login boundary:

  • runLocalProviderLogin() in src/tui/tui-auth-invocation.ts calls modelsAuthLoginCommand with createNonExitingRuntime() — in-process, no child process, so no state-ownership conflict.
  • refreshAfterLogin calls refreshRuntimeAuthProfileStoreAfterLogin() (in src/agents/auth-profiles.ts): it re-observes the persisted auth store (refreshAuthProfileFileState) and republishes through the secrets runtime's refreshActiveProviderAuthRuntimeSnapshot hook.
  • src/secrets/runtime.ts binds refreshActiveProviderAuthRuntimeSnapshot as the post-login republish hook at module scope (where it already registers the auth-store external-refresh hook). Binding at load time — not inside the external-file callback — is what lets a fresh process that has never fired a file event republish a same-session login.
  • tui.ts runAuthFlow keeps the Codex child branch; for the built-in local path it suspends the TUI (withTuiSuspended), runs the login in-process on the TUI's own abort signal, and records the completion so the next turn waits for it. tui.ts is grandfathered over its line cap, so the new sequence lives in tui-auth-invocation.ts and auth-login.types.ts (types moved out of the oversized auth.ts); tui.ts itself does not grow.
  • modelsAuthLoginCommand gains refreshAfterLogin; when it is set and the login did not refresh, it raises ProviderCredentialsSavedError ("Sign-in was saved, but this session could not refresh... Restart the local TUI and retry") instead of silently claiming success.
  • SIGTERM hygiene copied from fix: let local TUI /auth sign in to providers again #200605: PREPARED_MODEL_RUNTIME_LIFETIMES_KEY is hoisted to a shared constant (prepared-model-runtime.{lifecycle,types}.ts), and runtime-cleanup-scope.ts releases the native-worker-backed model generation on CLI cleanup, so a SIGTERM with an auth prompt open still exits.

Behavior is unchanged for Codex-backed logins (Codex owns its own store and keeps its child branch) and for profiles already present in the published generation.

User Impact

Signing in from the local TUI now lets the same session send its next message, instead of requiring a restart. Users who already restart lose nothing; the stale-generation window that produced the misleading error is closed.

Evidence

Discriminating unit regression (fresh-process binding, no file event)

src/secrets/runtime-file-observation.test.ts gains republishes the persisted store through the production-bound refresh hook without a file event. It activates a real secrets snapshot, then calls refreshRuntimeAuthProfileStoreAfterLogin() with no external-file event having fired, and asserts the post-login refresh republishes through the hook the secrets runtime bound at module scope. This is the exact fresh-process shape: with the binding inside the external-file callback (base) a process that never fired a file event has no hook and reports no republish; with the binding at module scope (head) it republishes.

# BASE (binding inside the external-file callback) with the same test
FAIL  runtime-file-observation.test.ts > republishes the persisted store through the production-bound refresh hook without a file event
AssertionError: expected false to be true
      Tests  1 failed | 5 passed (6)

# HEAD (binding at module scope)
PASS  runtime-file-observation.test.ts > republishes the persisted store through the production-bound refresh hook without a file event
      Tests  6 passed (6)

Command: node scripts/run-vitest.mjs run src/secrets/runtime-file-observation.test.ts --maxWorkers=1.

src/agents/auth-profiles/oauth.test.ts keeps a fresh-process contract — does not fabricate a published generation when no secrets runtime bound the republish hook asserts an unbound process reports no republish (rather than inventing a generation). 15/15 on head. Neighbouring owners stay green on head: tui.test.ts, runtime-file-invalidation.test.ts, file-state.test.ts — 50 + 23 tests passed.

End-to-end: real built CLI + PTY, both credential shapes

src/tui/tui-pty-local.e2e.test.ts's existing local-auth case is now a parameterized, in-process, real-PTY run against a built CLI and a mock Gateway (itWithBuiltCli.for(["inline API key", "store-backed token"])), reusing the new helpers prepareLocalAuthProviderFixture, signInToLocalPtyProvider and readLocalPtyAuthProfile in tui-pty-local-test-support.ts. Both variants pass on head.

Each variant drives /auth tui-pty-mock through the real TTY, completes the provider's prompt with a sentinel value, and asserts that a message in the same session reaches the mock Gateway with the new credential:

  • inline API key: one prompt (Enter T05 local auth API key), one follow-up request; authorization === "Bearer <sentinel>", body.model === "gpt-5.5", persisted profile is type: api_key with the sentinel key.
  • store-backed token (kind: device_code, warm session already active): requests length is 2 — the warm-session request plus the post-login request with the new Bearer <sentinel> — and the persisted profile is type: token with tokenRef.source === "store" and no inlined token, proving the login refreshed the active session rather than just writing storage.

Both variants also prove the lifecycle regression fix: after re-opening the auth prompt, the TUI is SIGTERMed and exits with code 0 and no signal (the TUI shutdown handlers run and release the native-worker-backed model generation), then the persisted profile is asserted on disk.

# HEAD (in-process login), both cases, real PTY against built CLI
PASS  tui-pty-local.e2e.test.ts > TUI PTY real backends > authenticates a manifest-discovered provider and resumes the unchanged local model (inline API key)
PASS  tui-pty-local.e2e.test.ts > TUI PTY real backends > authenticates a manifest-discovered provider and resumes the unchanged local model (store-backed token)

The prior child-process version of this test passed the message-turn assertion only because it reloaded the store from outside the TUI process; the in-process run exercises the actual same-session path, which is the reported scenario.

Honest scope of the proof

The e2e runs a real TTY and a built CLI, but the provider is a local mock provider, not the reported GitHub Copilot device flow (a network device-auth flow this environment cannot drive). The decision boundary that produced the reported error — the post-login republish in a process that never fired a file event — is covered directly by the unit regression above; the e2e covers the full same-session resume path with a real credential of both shapes.

Verification

  • node scripts/run-vitest.mjs run src/secrets/runtime-file-observation.test.ts --maxWorkers=1 — 6/6 on head; the added case fails expected false to be true on base.
  • node scripts/run-vitest.mjs run src/agents/auth-profiles/oauth.test.ts --maxWorkers=1 — 15/15.
  • node scripts/run-vitest.mjs run src/tui/tui.test.ts src/agents/auth-profiles/runtime-file-invalidation.test.ts src/agents/auth-profiles/file-state.test.ts --maxWorkers=1 — 50 + 23 tests passed.
  • tui-pty-local.e2e.test.ts — both credential cases pass against a built CLI on a real PTY (mock Gateway).
  • node scripts/check-line-cap-ratchet.mts --base origin/main --no-merge-base — OK (changed source files; tui.ts does not grow).
  • node scripts/check-test-lines-ratchet.mts --base origin/main --no-merge-base — OK.
  • oxfmt --check and oxlint --tsconfig config/tsconfig/oxlint.core.json on the changed files — clean.
  • git diff --check — clean.

Scope and risk

  • Production files (18 changed): oauth.ts +24, runtime-file-observation.ts +13, secrets/runtime.ts +5, tui-auth-invocation.ts +20, auth.ts −33 (types moved to auth-login.types.ts +49), prepared-model-runtime.lifecycle.ts +5/−4, prepared-model-runtime.types.ts +4, runtime-cleanup-scope.ts +3, tui.ts +26/−34 (net −8), plus tui-command-context.ts, tui-command-handlers.ts and barrel export. No new config, option, schema, migration, or persistence policy.
  • Existing-solutions preflight: reuses refreshAuthProfileFileState (persisted-store observer), refreshActiveProviderAuthRuntimeSnapshot (secrets-owned refresh, already registered for auth-store refresh) and the PREPARED_MODEL_RUNTIME_LIFETIMES_KEY constant; no new resolution primitive.
  • Files touched are not part of any open PR's file set (checked against the ~200 open PRs' file lists: runtime-snapshots/auth-profiles/oauth/runtime-degraded-state all clear).

An in-process local login persists the credential behind the running
runtime's back. The published auth generation still predates it, and a
same-process write need not produce a file event on every platform, so
the next turn reported the reference as unmaterialized until restart.

Rebuild the generation from the persisted store at the login boundary,
clearing it first so a dropped observer still republishes.

Fixes openclaw#201751
@clawsweeper

clawsweeper Bot commented Nov 19, 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.

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Maintainer security review required

This external contributor PR changes sensitive security components. A maintainer must review these changes before merging.

Current SHA: bba6598a0ee6c3391c7c3a2aee02d54b46d69ed8

These sensitive security changes were made:

  • src/agents/auth-profiles.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/agents/auth-profiles/oauth.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/agents/auth-profiles/runtime-file-observation.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/secrets/runtime.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

After reviewing the changes, post a new PR comment containing only approval commands, each on its own line:

/allow-security-sensitive-change

A later push requires a fresh approval comment.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 19, 2026
@clawsweeper

clawsweeper Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR runs built-in local TUI login in-process and republishes saved credentials before chat resumes.

Example: Sign in to GitHub Copilot from an existing local TUI session, then send “test”.

  • Before: The saved token can remain unavailable to the active runtime until a new process starts.
  • After: The intended behavior is for the next message to use the saved token in the same session.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The repair has clear value, but the supplied proof remains test-only and the retained Codex branch is broken.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Local TUI sign-in can fail on state ownership or save credentials that the same session cannot use.
Reason: Successful sign-in should permit the next chat turn without restarting, and the repair needs no new user-facing setting.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep open: the same-session login repair is useful, but both previously reported blockers remain in this head.

Priority: P2
Reviewed head: bba6598a0ee6c3391c7c3a2aee02d54b46d69ed8

Before merge

  • Add real behavior proof - The updated body supplies built-CLI PTY test PASS output for inline and store-backed credentials, but no captured product output for this head’s refresh bridge; the linked terminal captures exercise the related PR’s direct refresh implementation. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • [P1] Pass the resolved Codex executable to the argv formatter (P1) - When the session selects Codex and its executable is installed, execution reaches this line after the patch has removed the local command declaration. Evaluating command throws ReferenceError before spawnAndWait, so /auth cannot start Codex login. Pass codexBin instead. This previously reported finding remains unchanged.
  • [P2] Call the existing secrets refresh owner directly (P2) - The in-process login already supplies refreshAfterLogin, and src/secrets/runtime.ts exports refreshActiveProviderAuthRuntimeSnapshot for exactly this publication. The added mutable registration slot, binder, runner, auth-profiles wrapper, and module-load registration introduce another path for that same operation without a missing responsibility. Call the secrets operation from the TUI callback and remove the bridge and its implementation-specific tests, following the repository’s existing-owner rule. The direct path is also used by fix: let local TUI /auth sign in to providers again #200605. This previously reported finding remains unresolved.
  • Await maintainer action - A maintainer must approve the current revision’s security-sensitive changes before merge.

Findings

  • [P1] [P1] Pass the resolved Codex executable to the argv formatter — src/tui/tui.ts:1005
  • [P2] [P2] Call the existing secrets refresh owner directly — src/agents/auth-profiles/runtime-file-observation.ts:16-26

Tests

  • Low-value test src/agents/auth-profiles/oauth.test.ts: Remove the new unbound-hook test with the redundant bridge; it deliberately unbinds implementation state rather than proving successful same-session credential adoption.
  • Low-value test src/secrets/runtime-file-observation.test.ts: Remove the new registration test with the bridge; it refreshes an unchanged credential and asserts the reference shape without exercising a post-login credential change.
  • Missing end-to-end proof: Provide redacted product terminal output from this head showing warm-session protected-token login, the next successful message, and prompt-open shutdown; test PASS lines and another PR’s captures do not establish this path.
Agent review details

How this fits together

The local TUI invokes shared provider login, which persists credentials and refreshes the secrets snapshot consumed by embedded model requests.

flowchart LR
  A[Local TUI auth command] --> B[Shared provider login]
  B --> C[Credential store]
  B --> D[Post-login refresh]
  C --> E[Secrets runtime snapshot]
  D --> E
  E --> F[Next embedded model request]
Loading

Technical review

Best possible solution:

Keep in-process login and existing shutdown ownership, call the secrets refresh owner directly, and preserve the working Codex child invocation.

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

Source shows the child-process login and stale SecretRef publication boundaries, while the related PR records matching failures; no target code was executed during this review.

Is this the best way to solve the issue?

In-process login addresses state ownership, but the existing post-login callback can invoke the authoritative secrets refresh directly without another registration mechanism.

Full review comments:

  • [P1] [P1] Pass the resolved Codex executable to the argv formatter — src/tui/tui.ts:1005
    When the session selects Codex and its executable is installed, execution reaches this line after the patch has removed the local command declaration. Evaluating command throws ReferenceError before spawnAndWait, so /auth cannot start Codex login. Pass codexBin instead. This previously reported finding remains unchanged.
    Confidence: 1
  • [P2] [P2] Call the existing secrets refresh owner directly — src/agents/auth-profiles/runtime-file-observation.ts:16-26
    The in-process login already supplies refreshAfterLogin, and src/secrets/runtime.ts exports refreshActiveProviderAuthRuntimeSnapshot for exactly this publication. The added mutable registration slot, binder, runner, auth-profiles wrapper, and module-load registration introduce another path for that same operation without a missing responsibility. Call the secrets operation from the TUI callback and remove the bridge and its implementation-specific tests, following the repository’s existing-owner rule. The direct path is also used by fix: let local TUI /auth sign in to providers again #200605. This previously reported finding remains unresolved.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 87e11d6259e9.

Provenance checked

  • Local TUI built-in authentication changes intended behavior with a stated reason (276c000: Local embedded mode delegated authentication to foreground commands; later installed-package repairs preserved a canonical CLI invocation.)
  • Post-login auth-store reload changes intended behavior with a stated reason (6d33511: Out-of-process login could relocate the shared auth store, requiring the running TUI to reload ownership.)
  • Resolved credential publication keeps the original intent (3ccacf7: Auth retains persisted facts while secrets activation owns resolved credential publication and external-change refresh.)
  • Foreground auth shutdown keeps the original intent (13fd888: The TUI must stop its foreground authentication work and avoid restarting its UI after exit begins.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Introduced Codex login failure: The patch removes the local command declaration but still passes command to the argv formatter before spawning Codex. (src/tui/tui.ts:1005, bba6598a0ee6)
  • Existing refresh owner: refreshActiveProviderAuthRuntimeSnapshot already prepares and activates provider credential snapshots; the new registration bridge ultimately calls this same owner. (src/secrets/runtime.ts:604, bba6598a0ee6)
  • Related repair and captured proof: fix: let local TUI /auth sign in to providers again #200605 addresses both the state-lock failure and warm-session protected-token failure, directly calls the secrets refresh owner, and supplies captured product terminal output for its own revision. (6feedfb9b51f)
  • Reported user failure: [Bug]: Local TUI reports successful GitHub Copilot login but cannot use the token until restarted #201751 records successful Copilot login followed by an unmaterialized SecretRef error; its observation used a modified older installation.
  • Current-head security approval: The security guard requires maintainer approval for this exact head; the PR has no submitted reviews, and mergeability is true with a blocked state. (bba6598a0ee6)
  • Feature history: History traces local embedded auth to fuller-stack-dev, installed auth and invocation ownership to Vincent Koc, post-login store reload to Dallin Romney, and secrets publication ownership to Peter Steinberger. (src/tui/tui.ts, 276c00015c83)

Likely related people:

  • Peter Steinberger: Raw commit 3616fba adds src/secrets/runtime.ts:484 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3616fba951f7; files: src/secrets/runtime.ts)

PR surface

Source +79, Tests +92. Total +171 across 18 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 13 167 88 +79
Tests 5 248 156 +92
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 18 415 244 +171

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs a limited local-TUI authentication workflow with a restart workaround.
  • merge-risk: 🚨 auth-provider: The introduced undefined variable prevents installed Codex login from starting.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (3 earlier review cycles)
  • reviewed 2026-11-19T10:50:07.154Z sha ecb07de :: needs real behavior proof before merge. :: [P2] Initialize the refresh hook before an external-file event is needed
  • reviewed 2026-11-19T13:38:25.034Z sha 7cfae03 :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-19T23:26:44.246Z sha bba6598 :: needs real behavior proof before merge. :: [P1] [P1] Pass the resolved Codex executable to the argv formatter | [P2] [P2] Call the existing secrets refresh owner directly

Reviewed November 19, 2026, 8:06 PM ET / November 20, 2026, 01:06 UTC (Revision 4).

ClawSweeper found the refresh hook was only bound inside the
external-file refresh callback, so a fresh process that never fired a
file event could not republish a same-session login credential. Move the
binding to module scope so it exists before any event.

The regression now exercises production registration: with no file event
fired, the post-login refresh must republish through the hook the secrets
runtime bound at load time. Red on the old binding placement, green here.
@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

The child-process login could not acquire gateway state ownership while the
TUI held it, so /auth failed before the post-login refresh ever ran. Run the
login in-process through the TUI's own state owner (sharing the embedded
runtime), matching the approved openclaw#200605 shape.

The post-login republish still goes through the module-scoped secrets-layer
binding (refreshRuntimeAuthProfileStoreAfterLogin), so the persisted store is
re-observed and republished into the active runtime generation without
relying on an external file event. The prepared-model-runtime lifetimes key is
exposed so CLI cleanup releases model generations backed by native workers,
letting the TUI exit on SIGTERM while an auth prompt is open.

Regression: the built-CLI PTY scenario now exercises cancellation, retry,
credential entry, and a resumed request carrying the new credential for both
an inline API key and a store-backed token.

Co-Authored-By: nebulacoder-v8.0 <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes commands Command implementations size: L and removed size: S labels Nov 19, 2026
@wangmiao0668000666 wangmiao0668000666 changed the title fix(tui): adopt the credential saved by a same-session auth login fix(tui): run built-in login in-process so a same-session auth resumes Nov 19, 2026
@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. label Nov 19, 2026
@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review — PR body updated to the in-process implementation with real-PTY e2e evidence for both credential shapes (inline API key and store-backed token).

@clawsweeper

clawsweeper Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

Closing in favor of #200605, which fixes the same reported bug (#201751) plus #200558 with a broader, better-evidenced change: it runs built-in login in-process under the TUI's state owner, republishes the provider snapshot for a warm session, and ships real-PTY proof for both inline-key and store-backed-token logins. That PR is already at proof: sufficient / ready for maintainer, so keeping a second overlapping PR open only splits review attention.

Branch fix/tui-auth-refresh-after-login is left in place in case the maintainers prefer any part of this approach.

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

Labels

agents Agent runtime and tooling cli CLI command changes commands Command implementations merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. security-review-required security-sensitive-changed size: L status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Local TUI reports successful GitHub Copilot login but cannot use the token until restarted

1 participant