Skip to content

Conversation

@designorant
Copy link
Owner

Changes:

  • Add whitespace trimming and carriage return handling for robust parsing
  • Expand success patterns to recognize more output format variations:
    • "Active block" (without "Block N (Current)" prefix)
    • Time formats like "3h 15m" (with or without "remaining")
    • All case-insensitive matching
  • Add explicit empty output detection with specific warning message
  • Add debug logging when CCBLOCKS_DEBUG=1 to show actual ccusage output
  • Log unrecognized output to system logger for troubleshooting
  • Add test coverage for alternative formats and edge cases

The verification remains optional and non-fatal, but now provides better diagnostics for troubleshooting platform-specific output format differences.

Users experiencing warnings can set CCBLOCKS_DEBUG=1 to see the actual ccusage output format and report it for further pattern additions.

Fixes #2

Fixes #2 - Trigger verification warnings on Raspberry Pi

Changes:
- Add whitespace trimming and carriage return handling for robust parsing
- Expand success patterns to recognize more output format variations:
  * "Active block" (without "Block N (Current)" prefix)
  * Time formats like "3h 15m" (with or without "remaining")
  * All case-insensitive matching
- Add explicit empty output detection with specific warning message
- Add debug logging when CCBLOCKS_DEBUG=1 to show actual ccusage output
- Log unrecognized output to system logger for troubleshooting
- Add test coverage for alternative formats and edge cases

The verification remains optional and non-fatal, but now provides better
diagnostics for troubleshooting platform-specific output format differences.

Users experiencing warnings can set CCBLOCKS_DEBUG=1 to see the actual
ccusage output format and report it for further pattern additions.
@designorant designorant merged commit 28e8ded into master Nov 29, 2025
4 checks passed
@designorant designorant deleted the claude/have-a-look-011CV6FbgTaiW59DQBKhU9c5 branch November 29, 2025 03:20
@designorant designorant changed the title Code Review and Analysis Improve Output Parsing, Add Debug Mode, and Handle Edge Cases Nov 29, 2025
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.

Trigger verification inconclusive (ccusage output unrecognised)

3 participants