Skip to content

Commit abbb28f

Browse files
committed
docs(gateway): update originAgent JSDoc to reflect separate display field
Stale JSDoc claimed originAgent stamps the persisted entry's provider field, but the revised design (commit bf61a0c) preserves the provider/model sentinel pair unchanged and persists originAgent as a separate display-attribution field. Doc now matches behavior; also notes that empty/whitespace values are treated as unset. Addresses clawsweeper P3 review feedback on PR #79959.
1 parent 5f458bd commit abbb28f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/gateway/server-methods/chat-transcript-inject.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,12 @@ export async function appendInjectedAssistantMessageToTranscript(params: {
4848
message: string;
4949
label?: string;
5050
/**
51-
* When set, stamps the persisted assistant entry's `provider` field so
51+
* When set, persists a separate `originAgent` field on the assistant entry so
5252
* downstream UIs (avatar/handle resolvers) can attribute the inject to a
53-
* non-OpenClaw source (e.g. "hermes", "codex"). Default remains "openclaw".
53+
* non-OpenClaw source (e.g. "hermes", "codex"). The sentinel `provider:
54+
* "openclaw"` + `model: "gateway-injected"` pair is preserved unchanged so
55+
* the replay-history filter still drops these rows from model replay.
56+
* Whitespace-only or empty values are treated as unset.
5457
*/
5558
originAgent?: string;
5659
/** When set, used as the assistant `content` array (e.g. text + embedded audio blocks). */

0 commit comments

Comments
 (0)