mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-15 16:15:12 +00:00
Docs: use SessionEnd for Codex hook cleanup (#1733)
* Docs: use SessionEnd for Codex hook cleanup * Docs: note legacy Codex Stop issue
This commit is contained in:
1 parent
19046bba66
commit
3ede3cbc33
2 files changed
+8
-1
No files matched your search
@@ -355,7 +355,7 @@ Then create `~/.codex/hooks.json` with the following content:
|
||||
]
|
||||
}
|
||||
],
|
||||
"Stop": [
|
||||
"SessionEnd": [
|
||||
{
|
||||
"hooks": [
|
||||
{
|
||||
@@ -369,6 +369,12 @@ Then create `~/.codex/hooks.json` with the following content:
|
||||
}
|
||||
```
|
||||
|
||||
The `SessionEnd` cleanup hook requires Codex 0.145.0 or newer. Older Codex versions only support
|
||||
`Stop` for cleanup, which currently has a [known compatibility issue](https://github.com/oraios/serena/issues/1533).
|
||||
If you still configure it, replace `SessionEnd` with `Stop` in the example above. Configure cleanup
|
||||
under exactly one of these events, never both: `Stop` runs after every turn, while `SessionEnd` runs
|
||||
when Codex tears down the root thread.
|
||||
|
||||
The hooks will:
|
||||
|
||||
- **`activate`**: Prompt the agent to activate the current project and read Serena's instructions
|
||||
|
||||
Reference in new issue
Block a user