pi-mono/packages/coding-agent/test
Mat 244f1deaf1
Some checks are pending
CI / build-check-test (push) Waiting to run
feat(coding-agent): add before_provider_headers extension hook (#6350)
* feat(coding-agent): add before_provider_headers extension hook

Extensions can already rewrite the request payload through before_provider_request, but there is no way to adjust the outgoing HTTP
headers of a provider call. This hook fills that gap for cases like request tracing, session correlation, or tenant routing.

Handlers mutate the headers map in place - a null value deletes a header - and the return value is ignored, so a handler cannot accidentally drop auth or attribution headers by
forgetting to spread.

* docs(coding-agent): document before_provider_headers extension hook

Add the before_provider_headers section and lifecycle-diagram entry to
extensions.md; drop the now-superseded proposal file.
2026-07-06 22:35:56 +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(coding-agent): add InlineExtension type for named inline extension factories (#6267) 2026-07-06 20:59:37 +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 fix(ai): require OpenAI Responses terminal events 2026-06-23 16:35:45 +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
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 chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
clipboard-native.test.ts fix(coding-agent): ship clipboard sidecar in bun binaries 2026-05-23 10:47:35 +02:00
clipboard.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +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(ai): require OpenAI Responses terminal events 2026-06-23 16:35:45 +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(coding-agent): add before_provider_headers extension hook (#6350) 2026-07-06 22:35:56 +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 fix(coding-agent): show resources before messages when resuming session 2026-06-24 20:41:34 +08: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
model-registry.test.ts fix(coding-agent): allow custom providers to use stored auth 2026-06-23 11:52:31 +02:00
model-resolver.test.ts fix(coding-agent): skip unauthenticated default model 2026-07-02 10:48:11 +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): allow session id for no-session runs 2026-06-25 14:44:44 +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): add configurable assistant output padding 2026-06-30 11:44:34 +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 fix(coding-agent): wrap tree help on narrow terminals 2026-06-15 01:25:46 +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