fix(coding-agent): preserved fork prompt cache affinity

- Persisted an inherited provider prompt-cache key on full session forks while keeping the child OMP session id independent.

- Added --prompt-cache-key and SDK startup inheritance so explicit cache affinity is separate from provider session routing.

- Cleared automatic inherited keys when model, thinking, system prompt, or tool schema inputs change.

Fixes #5035
This commit is contained in:
roboomp
2026-07-10 07:22:28 +00:00
parent e8d0a93db6
commit 7fa2c3f42d
10 changed files with 306 additions and 3 deletions
+1
View File
@@ -42,6 +42,7 @@ export interface Args {
noSession?: boolean;
sessionDir?: string;
providerSessionId?: string;
providerPromptCacheKey?: string;
fork?: string;
/** Collab link to join at startup (set by the `join` subcommand; no CLI flag). */
join?: string;