Repository navigation
fix(agent): untrusted backup dates, budgets in the owner's timezone, quieter logs - #13
Merged
Merged
Conversation
…quieter logs Closes the rest of AGT-04, plus AGT-07, AGT-08 and AGT-09 from the handoff audit. - Backup dates that can't be read or lie more than 5 minutes ahead become the import time and never replace a local record. Imports are capped at 10 MB and a per-kind record limit. - Daily usage and budgets roll over at the owner's local midnight. Tool calls from a turn that failed still count. - AI provider and chat-turn failures log only the error name and code. - The npm update check starts off on new installations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012XDDEe3xJunmyfeKA7zqv2
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Pablo · project thread
Plan, phase 1, PR 3. This closes what was left of AGT-04, and also AGT-07, AGT-08 and AGT-09 from the handoff audit.
Changes
9999-…still beat every later local edit.MAX_IMPORT_RECORDS). A backup over either limit is refused whole: nothing is imported.UsageServicecounts the day in the owner's timezone, read from settings. Before, the budget reset at UTC midnight, which is 21:00 in Brasília. An unusable timezone falls back to UTC.finally).errorSummary: the error name plus any 3–4 digit code. The message can quote a prompt or a note, so it is no longer logged.docs/security.md, and added the pt-BR text for the new error.Tests
npm run lint,typecheck,buildandnpm testall pass (879 tests).apps/agent/test/import-and-budget.test.ts:errorSummary.update-check.test.tsnow turns the check on where it needs it, and has a test that it starts off.Upgrading
No migration. Existing installs keep their saved update-check setting.
Generated by Claude Code