deepseek-harness/packages/hooks/hooks-codex/tests
Turtle f593ef5ab5 fix(session): drop the <context> envelope and project context verbatim
context/message previously defaulted to a <context source="…">…</context>
wrapper. No model is trained on a <context> tag either, and message
framing does not belong on the session surface: the surface projects the
durable log, and a caller that wants a frame formats its own content —
which the one heavy producer (workspace-context) already does with its own
<system-reminder> frame, opting out via 'raw'. The tag only added
machinery — ContextEnvelope plus an envelope field threaded through
InjectOptions, HookContext, the context/message event, and the agent-loop
inject/additionalContexts plumbing.

context/message now projects its content verbatim as a user-role message,
sharing one deriveEventMessage case with user/message and steering/message.
ContextEnvelope and every envelope field are removed; context/message.meta
still carries durable, model-hidden JSON state. Regenerated catalogs and
website API; refreshed the three affected keyless snapshots (envelope field
only; timestamps unchanged).

Broadens and renames the steering Agent Note to cover both envelope
removals as one decision.

Agent Note: .agents/notes/implemented/simplification/2026-07-20-unwrap-injected-content-envelopes.md
2026-07-20 16:22:20 +08:00
..
bridge.spec.ts Merge branch 'codex/simp-ui-identity-residue' into codex/simp-hide-concrete-agent-loop 2026-07-18 12:33:49 +08:00
config.spec.ts docs: audit hook compatibility limits 2026-07-14 11:22:53 +08:00
coverage-cases.ts fix(session): drop the <context> envelope and project context verbatim 2026-07-20 16:22:20 +08:00
coverage-post-tool.spec.ts test(hooks): split coverage suites across workers 2026-07-15 23:56:42 +08:00
coverage-prompt.spec.ts test(hooks): split coverage suites across workers 2026-07-15 23:56:42 +08:00
coverage-result-shape.spec.ts test(hooks): split coverage suites across workers 2026-07-15 23:56:42 +08:00