Cameron Beeley
3d7523b618
feat(agents): generalized native compaction ownership for CLI backends
...
Add `ownsNativeCompaction` capability to CliBackendPlugin so backends
that manage their own transcript compaction (e.g. Claude Code) can
declare it once and OpenClaw defers instead of fighting or failing.
Today only Codex declares compaction ownership (via the embedded runner
path + agentHarnessId). Claude-cli never reaches that path because it
runs as a CLI subprocess with no harness id set, so the safeguard
summarizer fires and hard-fails the turn.
This PR:
- Adds `ownsNativeCompaction?: boolean` to the backend plugin type
- Propagates it through all 4 backend resolution paths
- In `runCliTurnCompactionLifecycle`, when a backend declares ownership
but has no harness endpoint, returns a no-op instead of falling
through to the safeguard
- Sets the flag on claude-cli (first adopter)
Codex's existing native-harness path is unchanged: when
`isNativeHarnessCompactionSession` matches, the harness compaction
endpoint is still called as before.
Generalizes the partial fix in #87785 (codex-scoped) to a capability
any backend can opt into.
2026-06-02 14:39:35 +05:30
..
2026-06-01 23:03:27 -04:00
2026-06-01 10:26:08 -04:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-02 14:39:35 +05:30
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-02 06:23:53 +02:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 01:12:21 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:43:31 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-02 04:16:58 +00:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-02 02:35:12 -04:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:03:27 -04:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 16:45:46 -07:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-02 00:23:41 +02:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-02 14:22:25 +08:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-02 02:35:12 -04:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 01:07:35 -04:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-02 15:00:39 +08:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-05-31 09:32:52 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-05-27 19:24:04 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-06-01 23:06:55 +01:00
2026-05-31 22:40:48 +01:00
2026-05-31 15:53:14 +01:00
2026-05-31 22:40:48 +01:00