pi-mono/packages/coding-agent/test
Armin Ronacher 3d8f74357c
feat(ai): support message-anchored tool loading (#6474)
This adds cache-friendly dynamic tool loading anchored to tool results. Purely additive active-tool changes are recorded with `addedToolNames`, allowing supported Anthropic and OpenAI Responses models to load tool definitions at the point they become available instead of placing them in the cached prompt prefix.

It retains safe fallback behavior for unsupported models and non-additive changes but it will wipe caches.
2026-07-10 23:52:54 +02:00
..
fixtures fix(coding-agent,tui): drop typebox compiler shim and fix progress 2026-04-22 21:12:20 +02:00
session-manager fix(coding-agent): add entry renderers for session entries 2026-07-01 11:30:26 +02:00
suite feat(ai): support message-anchored tool loading (#6474) 2026-07-10 23:52:54 +02:00
agent-session-auto-compaction-queue.test.ts fix(coding-agent): stabilize auto-compaction threshold test 2026-07-05 23:14:10 +02:00
agent-session-branching.test.ts feat(ai): compat entrypoint, core-only root barrel (phase 5) 2026-06-10 21:17:12 +02:00
agent-session-compaction.test.ts feat(ai): compat entrypoint, core-only root barrel (phase 5) 2026-06-10 21:17:12 +02:00
agent-session-concurrent.test.ts feat(ai): compat entrypoint, core-only root barrel (phase 5) 2026-06-10 21:17:12 +02:00
agent-session-dynamic-provider.test.ts feat(ai): compat entrypoint, core-only root barrel (phase 5) 2026-06-10 21:17:12 +02:00
agent-session-dynamic-tools.test.ts feat(ai): compat entrypoint, core-only root barrel (phase 5) 2026-06-10 21:17:12 +02:00
agent-session-retry.test.ts feat(ai): compat entrypoint, core-only root barrel (phase 5) 2026-06-10 21:17:12 +02:00
agent-session-runtime-events.test.ts feat(ai): complete models runtime migration 2026-06-23 15:29:46 +02:00
agent-session-stats.test.ts feat(coding-agent): add prompt cache miss tracking (#6427) 2026-07-09 14:12:57 +02:00
agent-session-tree-navigation.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
ansi-utils.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
args.test.ts feat(coding-agent): add project trust gating 2026-06-05 10:51:43 +02:00
assistant-message.test.ts fix(coding-agent): apply output padding to user messages 2026-06-30 11:55:40 +02:00
auth-storage.test.ts fix(coding-agent): surface auth storage save failures 2026-07-01 21:24:26 +02:00
bash-close-hang-windows.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
bash-execution-width.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
block-images.test.ts fix(coding-agent): process BMP images from disk 2026-06-25 12:52:21 +02:00
cache-stats.test.ts feat(coding-agent): add prompt cache miss tracking (#6427) 2026-07-09 14:12:57 +02:00
changelog.test.ts fix(coding-agent): fix changelog links 2026-06-08 20:31:20 +02:00
clipboard-image-bmp-conversion.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
clipboard-image.test.ts Fix native clipboard in bun release (#6418) 2026-07-08 11:20:24 +02:00
clipboard-native.test.ts fix(coding-agent): fall back to text clipboard paste 2026-07-10 21:46:15 +02:00
clipboard.test.ts fix(coding-agent): fall back to text clipboard paste 2026-07-10 21:46:15 +02:00
compaction-extensions-example.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
compaction-extensions.test.ts Merge main into model-registry 2026-06-22 14:00:18 +02:00
compaction-serialization.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
compaction-summary-reasoning.test.ts feat(ai): compat entrypoint, core-only root barrel (phase 5) 2026-06-10 21:17:12 +02:00
compaction.test.ts fix(coding-agent): count custom messages in compaction budget 2026-07-09 12:46:03 +02:00
config-value-migration.test.ts fix(coding-agent): treat uppercase config values as literals 2026-06-13 21:24:22 +02:00
config.test.ts fix(coding-agent): install checked pi update version 2026-06-21 14:46:07 +02:00
edit-tool-legacy-input.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
edit-tool-no-full-redraw.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
experimental.test.ts feat(coding-agent): add experimental feature guard (#5547) 2026-06-09 13:23:07 +02:00
export-html-skill-block.test.ts fix(coding-agent): strip skill wrapper XML from HTML export user messages (#4234) 2026-05-06 18:06:37 +02:00
export-html-whitespace.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
export-html-xss.test.ts Fix HTML export URL sanitization 2026-06-02 16:32:18 +02:00
extensions-discovery.test.ts fix(coding-agent): add entry renderers for session entries 2026-07-01 11:30:26 +02:00
extensions-input-event.test.ts feat(coding-agent): expose streamingBehavior on InputEvent 2026-05-28 15:52:38 +10:00
extensions-runner.test.ts feat(ai): add input-based pricing tiers 2026-07-09 22:44:29 +02:00
file-mutation-queue.test.ts fix(coding-agent): use async operations in tools 2026-05-23 09:50:03 +02:00
first-time-setup-fork.test.ts fix(coding-agent): skip first-time setup for forks (#5627) 2026-06-11 21:36:26 +02:00
first-time-setup.test.ts feat(coding-agent): add experimental first-time setup flow (#5587) 2026-06-10 12:11:49 +02:00
footer-data-provider.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
footer-width.test.ts feat(coding-agent): show cache hit rate in footer 2026-06-05 10:51:43 +02:00
format-resume-command.test.ts feat(coding-agent): print resume hint on interactive exit 2026-05-29 15:56:42 +08:00
frontmatter.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
git-merge-and-resolve-extension.test.ts fix(coding-agent): drain follow-ups queued during agent_end 2026-05-28 18:27:39 +10:00
git-ssh-url.test.ts fix(coding-agent): harden git package install paths 2026-06-02 18:20:35 +02:00
git-update.test.ts fix(coding-agent): move temporary extension cache (#5345) 2026-06-03 00:44:21 +02:00
http-dispatcher.test.ts feat(coding-agent): add settings http proxy 2026-06-16 18:53:19 +02:00
image-process.test.ts fix(coding-agent): process BMP images from disk 2026-06-25 12:52:21 +02:00
image-processing.test.ts fix(coding-agent): use async operations in tools 2026-05-23 09:50:03 +02:00
image-resize-callers.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
initial-message.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
input-transform-streaming-example.test.ts feat(coding-agent): expose streamingBehavior on InputEvent 2026-05-28 15:52:38 +10:00
interactive-mode-anthropic-warning.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
interactive-mode-clone-command.test.ts fix(coding-agent): preserve startup extension UI 2026-06-21 23:19:34 +02:00
interactive-mode-compaction.test.ts fix(coding-agent): fix compaction event regression test 2026-06-29 17:12:19 +02:00
interactive-mode-import-command.test.ts fix(coding-agent): stabilize interactive status indicators 2026-06-29 16:53:39 +02:00
interactive-mode-startup-input.test.ts fix(coding-agent): buffer early input before prompt loop 2026-05-29 23:03:03 +08:00
interactive-mode-status.test.ts feat(coding-agent): support provider arguments for login 2026-07-08 12:06:26 +02:00
interactive-mode-suspend.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
keybindings-migration.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
max-thinking.test.ts feat(ai): add max thinking level 2026-07-09 22:30:53 +02:00
model-registry.test.ts fix(coding-agent): apply modelOverrides to extension providers 2026-07-09 11:22:35 +02:00
model-resolver.test.ts feat(ai): add max thinking level 2026-07-09 22:30:53 +02:00
oauth-selector.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
package-command-paths.test.ts Improve project-local pi config (#6309) 2026-07-06 20:50:30 +02:00
package-manager-ssh.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
package-manager.test.ts Improve project-local pi config (#6309) 2026-07-06 20:50:30 +02:00
path-utils.test.ts fix(coding-agent): Clean up Path Handling (#4873) 2026-05-22 11:25:15 +02:00
paths.test.ts fix(coding-agent): Clean up Path Handling (#4873) 2026-05-22 11:25:15 +02:00
pi-user-agent.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
plan-mode-extension.test.ts fix(coding-agent): fix plan-mode example 2026-06-21 22:10:17 +02:00
plan-mode-utils.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
print-mode.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
prompt-templates.test.ts feat(coding-agent): add prompt template argument defaults 2026-06-09 15:12:07 +03:00
resource-loader.test.ts fix(coding-agent): avoid project trust prompt for update (#5674) 2026-06-12 23:37:16 +02:00
restore-sandbox-env.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
rpc-client-clone.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
rpc-client-process-exit.test.ts fix(rpc): reject pending requests on child process exit 2026-05-25 00:40:07 +02:00
rpc-example.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
rpc-jsonl.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
rpc-prompt-response-semantics.test.ts feat(ai): compat entrypoint, core-only root barrel (phase 5) 2026-06-10 21:17:12 +02:00
rpc.test.ts feat(coding-agent): add get_entries and get_tree RPC commands 2026-06-25 09:38:35 -07:00
sdk-codex-cache-probe-tool-loop.ts feat(ai): compat entrypoint, core-only root barrel (phase 5) 2026-06-10 21:17:12 +02:00
sdk-openrouter-attribution.test.ts fix(coding-agent): remove Vercel AI Gateway attribution 2026-07-03 15:14:01 +02:00
sdk-session-manager.test.ts feat(ai): compat entrypoint, core-only root barrel (phase 5) 2026-06-10 21:17:12 +02:00
sdk-skills.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
sdk-stream-options.test.ts Fix stale SDK stream options test after httpIdleTimeoutMs universalization 2026-06-02 15:53:37 +02:00
session-cwd.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
session-file-invalid.test.ts fix(coding-agent): shorten invalid session error 2026-06-25 15:20:08 +02:00
session-id-readonly.test.ts fix(coding-agent): warn when session-id creates a session 2026-07-09 11:37:07 +02:00
session-info-modified-timestamp.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
session-selector-path-delete.test.ts fix(coding-agent): sort threaded sessions by latest activity in the subtree 2026-06-16 00:39:30 +04:00
session-selector-rename.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
session-selector-search.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
settings-manager-bug.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
settings-manager.test.ts feat(coding-agent): expand ~ in shellPath setting (#6470) 2026-07-09 23:23:06 +02:00
skills.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
startup-session-name.test.ts Add startup session name flag 2026-05-29 11:40:58 +02:00
status-indicator.test.ts fix(coding-agent): stabilize interactive status indicators 2026-06-29 16:53:39 +02:00
stdout-cleanliness.test.ts fix: --help and --version redirect 2026-06-09 13:43:54 +02:00
streaming-render-debug.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
syntax-highlight.test.ts fix(coding-agent): restore diff code block highlighting 2026-05-28 00:49:27 +02:00
system-prompt.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
test-harness.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
test-harness.ts feat(coding-agent): add InlineExtension type for named inline extension factories (#6267) 2026-07-06 20:59:37 +02:00
test-theme-colors.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
theme-detection.test.ts feat(coding-agent): add automatic theme mode (#5874) 2026-06-18 17:13:47 +02:00
theme-export.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
theme-picker.test.ts fix(coding-agent): list themes by content name 2026-05-21 00:10:50 +04:00
tool-execution-component.test.ts Fix empty self-rendered tool rows 2026-06-02 15:25:27 +02:00
tools.test.ts fix(coding-agent): process BMP images from disk 2026-06-25 12:52:21 +02:00
tree-selector.test.ts feat(coding-agent): add message copy shortcut 2026-07-10 21:35:53 +02:00
trigger-compact-extension.test.ts feat(coding-agent): expose project trust to extensions 2026-06-09 13:03:59 +02:00
truncate-to-width.test.ts chore: migrate pi packages to earendil works scope 2026-05-07 15:59:42 +02:00
trust-manager.test.ts fix(coding-agent): avoid project trust prompt for update (#5674) 2026-06-12 23:37:16 +02:00
trust-selector.test.ts feat(ui): Improved project approval settings 2026-06-09 13:25:54 +02:00
user-message.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
utilities.ts feat(coding-agent): add InlineExtension type for named inline extension factories (#6267) 2026-07-06 20:59:37 +02:00
version-check.test.ts fix(coding-agent): handle npm package semver ranges 2026-06-14 01:38:51 +02:00