Files
deepseek-harness/scripts
Dudu-0223 93d9ded727 feat(llm): 在 DeepSeek 推理请求头中标记子代理和直接父会话 (#9298)
* feat(llm): mark DeepSeek subagent inference requests

* docs: refresh the module graph for subagent headers

* refactor(llm): register subagent headers through the DeepSeek extension registry

Add registerHeader()/headers() to ctx.deepseekLlmApiExtensions for x-dsh- request
headers. session-log-deepseek registers x-dsh-session-type and
x-dsh-subagent-parent-session-id independently of its enabled switch, and
llm-deepseek adds the registered headers without reading Sessions itself.

Remove the ./session-headers export and revert the llm-pi-ai changes.

* fix(llm): keep route credentials ahead of registered DeepSeek headers

Spread the route credential after plugin-registered x-dsh- headers so a
registration named x-dsh-auth-token cannot replace the account token, and
pin that order with an account-route regression test.

Document that the DeepSeek API defines the subagent header names, that the
parent id is supplementary, that removing session-log-deepseek also stops
the subagent headers, and that SDK subagents carry neither header.

* feat(llm): unify Harness attribution header names
2026-11-26 16:39:30 +08:00
..
2026-09-08 22:31:16 +08:00