Repository navigation
Description
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
In OpenClaw 2026.9.36, the local TUI reported successful GitHub Copilot authentication, but the next message in that session failed because the active runtime had not loaded the saved credential.
Steps to reproduce
- Launch openclaw tui --local and select a GitHub Copilot model.
- Complete GitHub Copilot device login from the TUI and wait for auth flow finished for github-copilot.
- Without exiting the TUI, send test.
Expected behavior
The same TUI should be able to send a message using the newly saved credential. As a working comparison, a fresh local OpenClaw process received a reply from github-copilot/claude-sonnet-5 using that credential without another login.
Actual behavior
The TUI reported that authentication had finished, then displayed secret reference was not materialized by the active runtime instead of a model reply.
OpenClaw version
2026.9.36 (70c40e4)
Operating system
Debian GNU/Linux 13 (trixie)
Install method
npm installation in the guest; launched with openclaw tui --local.
Model
github-copilot/claude-sonnet-5 was verified in the successful comparison. The failing TUI output identifies the Copilot profile but does not print the model ID.
Provider / routing chain
OpenClaw embedded local runtime → GitHub Copilot provider, with guest egress through an audit-only firewall. No separate OpenClaw Gateway service was running. The failing turn reported a local credential error, not a provider HTTP response.
Additional provider/model setup details
The device login created the github-copilot:github token profile. The installation included a downstream DNS compatibility change for device login; this report concerns the subsequent chat failure after login completed. An unmodified installation was not tested.
Logs
auth flow finished for github-copilot
test
run error: Secret owner account:["<agent-db-path>","github-copilot:github"] is configured but unavailable (secret reference was not materialized by the active runtime).Screenshots, recordings, and evidence
No screenshot attached. For comparison, a separate openclaw agent --local process using a temporary copy of the saved state received ok from github-copilot/claude-sonnet-5 and ended with stopReason=stop.
Impact and severity
One local TUI session was observed. Its first message after successful device login failed, blocking chat in that session. A fresh process could chat without signing in again. Frequency beyond this observation was not measured.
Additional information
The successful comparison used the same VM and saved credential. It was a fresh local agent process, not a verified restart of the original TUI. No last-known-good version was tested.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Nov 19, 2026
Codex review: this still needs some work.
Summary
Keep open: current main retains the credential-publication gap, and an open PR explicitly closes this issue.
Reproducibility: Current source shows snapshot invalidation and the matching unmaterialized-token failure boundary, corroborated by the contributor’s warm-session reproduction; this read-only review ran no product code.
Next step
Review the protected-token refresh repair in #200605 and keep this issue open until that closing PR is resolved.
Review details
Best possible solution:
Successful local login should publish protected credentials into the existing embedded runtime before chat resumes.
Do we have a high-confidence way to reproduce the issue?
Current source shows snapshot invalidation and the matching unmaterialized-token failure boundary, corroborated by the contributor’s warm-session reproduction; this read-only review ran no product code.
Is this the best way to solve the issue?
The linked PR addresses the existing login and publication owners directly and adds the missing protected-token scenario after an earlier chat turn.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against df2faf7d476c.
Label changes
Label changes:
No label changes.
Label justifications:
P2: The observed failure affects an advanced local TUI workflow, with saved credentials usable from a fresh process.impact:auth-provider: The active runtime cannot resolve a newly saved provider token for the next message.Evidence reviewed
What I checked:
src/tui/tui.ts:1029, df2faf7d476c)src/agents/auth-profiles/oauth.ts:331, df2faf7d476c)extensions/github-copilot/index.ts:47, df2faf7d476c)src/secrets/runtime.ts:610, df2faf7d476c)Likely related people:
src/tui/tui-auth-invocation.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed November 21, 2026, 4:18 AM ET / 09:18 UTC.
ArcueidMP commentedon Nov 19, 2026
I'll fix this in #200605. I reproduced it on that PR's head (
a7273a36e2b) inopenclaw tui --local, using a synthetic token saved to the same protected store Copilot uses.Signing in before the first message works. Signing in after a completed chat turn doesn't: the token is saved and the profile only has a
tokenRef, but the next message fails withsecret reference was not materialized by the active runtimeand never reaches the model.I haven't tested a real GitHub device login. I'll add a regression test for this case to the PR.