fix(codebuddy): clarify reload and source stats#208
Open
hxy91819 wants to merge 1 commit into
Open
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Summary
/hooksconfirmation after external settings editsstats --by-sourceeasier to inspect by sorting sources by raw observed cost, showing raw/reduced/saved metrics, and explaining historicalsource unknownentriesReal environment validation
tokenjuice install codebuddy --localwrote~/.codebuddy/settings.jsonwith a managedhooks.PreToolUseentry using matcherBash.HOMEcould read the installed hook viacodebuddy config get hooks.CODEBUDDY_CONFIG_DIRdid not see the hook, andtokenjuice doctor codebuddycorrectly reported it disabled for that config dir./hookspanel was not fully exercised in the clean TUI run because CodeBuddy stopped at the workspace trust prompt, but the config-level behavior matched the suspected reload/snapshot issue.tokenjuice wrap --source codebuddy -- ..., andtokenjuice stats --source codebuddy --by-sourcecounts those entries separately.source codebuddy: 361 entries, 428,977 raw chars, 341,033 saved chars.source unknownwas historical metadata without asourcefield: 3,064 missing source values, 0 invalid source values, concentrated from 2026-04-21 through 2026-04-26.Validation
pnpm typecheckpnpm buildenv -u TOKENJUICE_NO_OMISSION pnpm verifyNotes
The observed CodeBuddy issue appears to be runtime reload behavior rather than install-time settings corruption: CodeBuddy can read the written config, but an already-running session keeps its startup snapshot until restarted or confirmed through
/hooks.