fix(session): harden cross-session references

This commit is contained in:
Yichen Jiang
2026-07-21 17:54:44 +08:00
parent 8394898ef5
commit ebb62c482c
19 files changed
+213 -55

No files matched your search

+2 -2
View File
@@ -356,11 +356,11 @@ interface SendOptions {
}
```
`InjectOptions` extends ordinary message attribution with durable model-hidden JSON metadata:
`InjectOptions` accepts ordinary message attribution and durable model-hidden JSON metadata. Attached contexts belong only to queued or steering input, so synthetic injection cannot accept them:
```ts type-equiv
/** Options specific to durable synthetic context injection. */
interface InjectOptions extends SendOptions {
interface InjectOptions extends Omit<SendOptions, 'contexts'> {
/** Opaque JSON state retained in the session event but hidden from the model. */
meta?: JsonValue
}