You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a69e6e1
Browse filesBrowse the repository at this point in the historyBrowse files
Editor agent: refresh the LevelCode token on a mid-run 401 and retry
Long/looping agent runs 401'd (Signature has expired) — only the chat path refreshed the access token on 401; the agent loop was called raw. Add isAgentAuthError + wrap the turn call: on a 401 before any content has streamed, refresh once (via a ctx.refreshAuth hook wired in extension.js), update ctx.apiKey, and retry the turn once. Mid-stream/second failures propagate; BYOK / refresh-failed rethrow.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
if(!root){ctx.post({type: 'agentError',message: 'Open a folder first — the agent works on your workspace.'});ctx.post({type: 'agentDone',reason: 'error'});return;}
@@ -481,7 +488,7 @@ async function runAgent(ctx) {
0 commit comments