Usage Limit Tracking Inaccuracy in Session Management

Resolved 💬 12 comments Opened Jul 13, 2025 by Darren-A11att Closed Jan 5, 2026

Bug Description
Your tracking of usage limits has changed and is no longer accurate. For example, I went to sleep last night at 12:30am, and have keep a conversation open because I dont clear, quit etc. Then this morning from 8:45am. within 30 minutes of continuing the conversation and have done a few messages, I am now getting 'approaching usage limit' which is inaccurate. There is no way in the 30 minutes of a few requests I have hit the 900 messages. \
\
If you are tracking sessions from when the first message is sent, you need to reset or clear the session at the 5 hour mark, and you need a fall back to check the number of messages within the window.\
\
I suggest that with each message that is sent you check is message > 5 hours since session start time, yes new session, no continue session and count as messages within a session

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 1.0.51
  • Feedback ID: 7fed3e1a-26ea-4de5-a97a-1de00301ce5c

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:892:11)\n    at execSync (node:child_process:964:15)\n    at eD (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:712:4489)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:13989\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:14406)\n    at QF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:13129)\n    at cC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:11995)\n    at qB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:16609)","timestamp":"2025-07-13T23:18:24.967Z"}]

View original on GitHub ↗

This issue has 12 comments on GitHub. Read the full discussion on GitHub ↗