Repository navigation
feat: warn before the login token expires, and open the mod pane on a new hold - #1266
Conversation
… new hold The API sends Uploads-Token-Expires on requests made with an expiring D1 token. The CLI warns once a day on stderr in the token's last 7 days, with the date and `uploads login --force`. JSON output and --quiet stay silent, so the Claude Code mod's background refreshes never swallow it. The mod opens its staged pane on a row when a refresh finds a file held that wasn't held at the last look on the same branch. The first look of a session opens nothing. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MKDvJCH8YysWRhymtbqvn2
🦋 Changeset detectedLatest commit: 57e1675 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one): 2
🚫 Excluded labels (none allowed): 1
Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Requested by Zach · project thread
Two small follow-ups.
Token expiry warning (follow-up to #1228)
Uploads-Token-Expires: <expires_at>when the request's D1 token has an expiry.onTokenExpirycallback. In the token's last 7 days the CLI writes one stderr line, at most once a day (the day is kept intoken-expiry-warnedbeside the config file):uploads: your login expires in 5 days (2026-10-27). Run \uploads login --force` to renew it.`--json,--format json) and--quietdon't warn, so the Claude Code mod's backgrounduploads staged --format jsoncalls can't use up the day's warning before a person or agent sees it.Mod: open the pane on a new hold (follow-up to #1209)
When a band refresh finds a file held that wasn't held at the last look on the same repo and branch, the mod opens the staged pane on that row's detail view, where Approve is. It doesn't take keyboard focus. The first look of a session opens nothing, and the same hold doesn't open the pane twice.
Tests
claude plugin test plugins/claude/uploads: 45 pass (2 new)packages/uploads/test/client-expired-token.test.ts: warning once, quiet the same day, quiet further out or without the headerapps/api/test/routes-auth.test.ts: header on an expiring D1 tokenpnpm typecheck,pnpm checkChangeset: patch for
@buildinternet/uploadsand@uploads/plugin.Generated by Claude Code