co-mono/packages/coding-agent/test
Mario Zechner 7210086677 Extensions: add pi.sendUserMessage() for sending user messages
Adds sendUserMessage() to the extension API, allowing extensions to send
actual user messages (role: user) rather than custom messages. Unlike
sendMessage(), this always triggers a turn and behaves as if the user
typed the message.

- Add SendUserMessageHandler type and sendUserMessage() to ExtensionAPI
- Wire handler through loader, runner, and all modes
- Implement via prompt() with expandPromptTemplates: false
- Add send-user-message.ts example with /ask, /steer, /followup commands
- Document in extensions.md

fixes #483
2026-01-06 13:40:24 +01:00
..
fixtures Fix syntax highlighting stderr spam with malformed markdown, fixes #274 2025-12-22 00:23:01 +01:00
session-manager Merge hooks and custom-tools into unified extensions system (#454) 2026-01-05 01:43:35 +01:00
agent-session-branching.test.ts Change branch() to use entryId instead of entryIndex 2025-12-31 13:47:34 +01:00
agent-session-compaction.test.ts Add tree navigation tests and shared test utilities 2025-12-30 22:42:23 +01:00
agent-session-concurrent.test.ts Fix test: update expected error message for concurrent prompt 2026-01-03 16:41:01 +01:00
agent-session-tree-navigation.test.ts Add tree navigation tests and shared test utilities 2025-12-30 22:42:23 +01:00
args.test.ts Merge hooks and custom-tools into unified extensions system (#454) 2026-01-05 01:43:35 +01:00
block-images.test.ts Add blockImages setting to prevent images from being sent to LLM providers 2026-01-06 11:59:09 +01:00
clipboard-image.test.ts fix(coding-agent): paste clipboard images on Wayland via wl-paste/xclip 2026-01-06 12:11:43 +01:00
compaction-extensions-example.test.ts Merge hooks and custom-tools into unified extensions system (#454) 2026-01-05 01:43:35 +01:00
compaction-extensions.test.ts Extensions: add pi.sendUserMessage() for sending user messages 2026-01-06 13:40:24 +01:00
compaction-thinking-model.test.ts fix(ai): ensure maxTokens > thinkingBudget for Claude thinking models 2026-01-03 02:45:30 +01:00
compaction.test.ts refactor(coding-agent): fix compaction for branched sessions, consolidate hook context types 2025-12-31 02:24:24 +01:00
extensions-discovery.test.ts Merge hooks and custom-tools into unified extensions system (#454) 2026-01-05 01:43:35 +01:00
extensions-runner.test.ts Merge hooks and custom-tools into unified extensions system (#454) 2026-01-05 01:43:35 +01:00
fuzzy.test.ts Reorganize file structure: core/, utils/, modes/interactive/components/, modes/interactive/theme/ 2025-12-09 00:51:33 +01:00
interactive-mode-status.test.ts Coalesce sequential status messages 2026-01-01 00:28:37 +01:00
model-registry.test.ts Enhance provider override to support baseUrl-only mode 2026-01-03 01:06:08 +01:00
model-resolver.test.ts refactor(hooks): split session events into individual typed events 2025-12-30 22:42:22 +01:00
prompt-templates.test.ts Merge hooks and custom-tools into unified extensions system (#454) 2026-01-05 01:43:35 +01:00
rpc-example.ts Update RPC example to use RpcClient 2025-12-09 14:44:13 +01:00
rpc.test.ts Consolidate session events: remove session_before_new/session_new, add reason field to switch events 2026-01-01 23:31:26 +01:00
skills.test.ts Enable more biome lints and fix things 2025-12-21 22:56:20 +01:00
streaming-render-debug.ts Fix syntax highlighting stderr spam with malformed markdown, fixes #274 2025-12-22 00:23:01 +01:00
test-theme-colors.ts Reorganize file structure: core/, utils/, modes/interactive/components/, modes/interactive/theme/ 2025-12-09 00:51:33 +01:00
tools.test.ts fix(coding-agent): improve bash tool error handling (#479) 2026-01-06 00:48:10 +01:00
truncate-to-width.test.ts fix: TUI crash with Unicode characters in branch selector 2025-12-05 11:59:39 +01:00
utilities.ts fix(ai): ensure maxTokens > thinkingBudget for Claude thinking models 2026-01-03 02:45:30 +01:00