mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-04-25 01:25:52 +03:00
[PR #76] Fix false positive billing error detection in agent messages #103
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shannon-KeygraphHQ#103
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/KeygraphHQ/shannon/pull/76
Author: @moscowchill
Created: 2/7/2026
Status: 🔄 Open
Base:
main← Head:fix/billing-detection-false-positive📝 Commits (1)
750dea9Fix false positive billing error detection in agent messages📊 Changes
1 file changed (+18 additions, -1 deletions)
View changed files
📝
src/ai/message-handlers.ts(+18 -1)📄 Description
Summary
detectApiError()was checking full assistant message content including serialized tool_use JSONBillingErrorextractTextOnlyContent()that filters out tool_use blocks so only the agent's actual text responses are checked for billing patternsTest plan
extractTextOnlyContentfiltering tool_use blocks🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.