test(codex): cover projected hook suffix bounds · openclaw/openclaw@f257116
vincentkoc
·
2026-06-21
·
via Recent Commits to openclaw:main
File tree
extensions/codex/src/app-server
| Original file line number | Diff line number | Diff line change |
|---|
@@ -504,7 +504,10 @@ describe("runCodexAppServerAttempt context-engine lifecycle", () => {
|
504 | 504 | createMockPluginRegistry([ |
505 | 505 | { |
506 | 506 | hookName: "before_prompt_build", |
507 | | -handler: async (event) => ({ appendContext: event.prompt }), |
| 507 | +handler: async (event) => ({ |
| 508 | +appendContext: `${event.prompt}\n\nhook append marker`, |
| 509 | +prependContext: "hook prefix context", |
| 510 | +}), |
508 | 511 | }, |
509 | 512 | ]), |
510 | 513 | ); |
@@ -536,6 +539,7 @@ describe("runCodexAppServerAttempt context-engine lifecycle", () => {
|
536 | 539 | expect(inputText).toContain("recent anchor"); |
537 | 540 | expect(inputText).toContain("current inbound context survives"); |
538 | 541 | expect(inputText).toContain("current prompt survives"); |
| 542 | +expect(inputText).toContain("hook append marker"); |
539 | 543 | |
540 | 544 | await harness.completeTurn(); |
541 | 545 | await run; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。