Overview
| Comment: | Hooks: a PreToolUse allow may rewrite the call (updatedInput) and a PostToolUse answer may replace the result (updatedToolOutput), as in Claude Code; the rewrite is merged into the journaled input before the tool runs, the replacement is written over the effect and the tool_result entry in one transaction; the search tools' own fields reload from a rewrite; tests for a rewritten bash call, a rewritten grep pattern and a redacted result |
|---|---|
| Timelines: | family | ancestors | descendants | both | hook-fields |
| Files: | files | file ages | folders |
| SHA3-256: |
541190af050a4657124ee9af279e8f8b |
| User & Date: | dlair on 2026-11-22 21:42:46.857 |
| Other Links: | branch diff | manifest | tags |
Context
|
2026-11-23
| ||
| 15:36 | merge trunk into hook-fields; loop_pending is the pending call's type name now closed check-in: 60d2ca1498 user: dmestas tags: hook-fields | |
|
2026-11-22
| ||
| 21:42 | Hooks: a PreToolUse allow may rewrite the call (updatedInput) and a PostToolUse answer may replace the result (updatedToolOutput), as in Claude Code; the rewrite is merged into the journaled input before the tool runs, the replacement is written over the effect and the tool_result entry in one transaction; the search tools' own fields reload from a rewrite; tests for a rewritten bash call, a rewritten grep pattern and a redacted result check-in: 541190af05 user: dlair tags: hook-fields | |
| 20:44 |
land keys-b
via mac, quarry check-in: 21577db451 user: dmestas tags: trunk | |
Changes
Modified CHANGELOG.md
from [7276bc2841]
to [520e803164].
[diff]
Modified docs/manual/hooks.md
from [be7034216d]
to [3dc89e291c].
[diff]
Modified docs/reference/hook-events.md
from [9eb60141b9]
to [be805d9d5f].
[diff]
Modified src/hooks.c
from [0e405adc76]
to [08926f6e95].
[diff]
Modified src/hooks.h
from [0a5f73f64b]
to [3773796df1].
[diff]
Modified src/loop.c
from [ad7f8a0985]
to [946e15066f].
[diff]
Modified test/pic/hooks.sh
from [e520c8290f]
to [0fbeecc51e].
[diff]