Skip to content

fix(tokenRefresh): silence scheduled refresh log#518

Open
nxtkofi wants to merge 1 commit into
rynfar:mainfrom
nxtkofi:fix/token-refresh-log-noise
Open

fix(tokenRefresh): silence scheduled refresh log#518
nxtkofi wants to merge 1 commit into
rynfar:mainfrom
nxtkofi:fix/token-refresh-log-noise

Conversation

@nxtkofi
Copy link
Copy Markdown

@nxtkofi nxtkofi commented May 27, 2026

Summary

  • remove the unconditional scheduled token refresh console.error line
  • keep the existing claudeLog("token_refresh.scheduled", ...) debug telemetry
  • add a regression test covering the default no-stderr behavior

Closes #517.

Why

The default stderr line can surface inside interactive TUI clients such as OpenCode when Meridian runs through opencode-with-claude, polluting the input line with:

[token_refresh] scheduled refresh (immediate) ok=false

Verification

  • bun test src/__tests__/token-refresh.test.ts
  • bun run typecheck

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scheduled token refresh writes status to stderr by default

2 participants