co-mono/packages/ai/test
Mario Zechner b813a8b92b Implement tool result truncation with actionable notices (#134)
- read: actionable notices with offset for continuation
  - First line > 30KB: return empty + bash command suggestion
  - Hit limit: '[Showing lines X-Y of Z. Use offset=N to continue]'

- bash: tail truncation with temp file
  - Notice includes line range + temp file path
  - Edge case: last line > 30KB shows partial

- grep: pre-truncate match lines to 500 chars
  - '[... truncated]' suffix on long lines
  - Notice for match limit and line truncation

- find/ls: result/entry limit notices
  - '[N results limit reached. Use limit=M for more]'

- All notices now in text content (LLM sees them)
- TUI simplified (notices render as part of output)
- Never return partial lines (except bash edge case)
2025-12-07 01:11:31 +01:00
..
data feat(ai): Add image input tests for vision-capable models 2025-08-30 18:37:17 +02:00
abort.test.ts Add timestamp to messages 2025-10-26 00:43:43 +02:00
agent.test.ts Add image support in tool results across all providers 2025-11-12 10:45:56 +01:00
context-overflow.test.ts Implement tool result truncation with actionable notices (#134) 2025-12-07 01:11:31 +01:00
empty.test.ts Add totalTokens field to Usage type 2025-12-06 22:46:02 +01:00
enum-test.ts refactor(ai): improve error handling and stop reason types 2025-09-18 19:57:13 +02:00
google-thought-signature.test.ts Release v0.7.17 2025-11-18 17:49:12 +01:00
handoff.test.ts Add totalTokens field to Usage type 2025-12-06 22:46:02 +01:00
image-tool-result.test.ts Fix up prompt for image-tool-result for Gemini 2025-11-20 17:09:32 +01:00
stream.test.ts Add image support in tool results across all providers 2025-11-12 10:45:56 +01:00
tokens.test.ts Fix token statistics on abort for Anthropic provider 2025-10-26 21:22:24 +01:00
tool-call-without-result.test.ts Add timestamp to messages 2025-10-26 00:43:43 +02:00
tool-validation.test.ts Add image support in tool results across all providers 2025-11-12 10:45:56 +01:00
total-tokens.test.ts Add totalTokens field to Usage type 2025-12-06 22:46:02 +01:00
unicode-surrogate.test.ts Add totalTokens field to Usage type 2025-12-06 22:46:02 +01:00