Skip to content

Add opt-in cache-stable dynamic prompts#3662

Merged
dgageot merged 1 commit into
docker:mainfrom
rumpl:stable-context
Jul 15, 2026
Merged

Add opt-in cache-stable dynamic prompts#3662
dgageot merged 1 commit into
docker:mainfrom
rumpl:stable-context

Conversation

@rumpl

@rumpl rumpl commented Jul 15, 2026

Copy link
Copy Markdown
Member

Persist frozen instruction snapshots and append chronological updates when trusted context changes without invalidating the cached prompt prefix.

Track dates, individual prompt files, git status, git diffs, recent commits, and directory listings as independent sources. Advance snapshots after compaction and preserve legacy transient system prompts when disabled.

Add the cache_stable_prompts user setting and expose it in the settings dialog.

This is disabled by default, we should test it more, it adds more context when things change but it doesn't bust the cache.

Before and after, a session where I ask an agent to update AGENTS.md

Screenshot 2026-07-15 at 16 31 10 Screenshot 2026-07-15 at 16 32 09

Persist frozen instruction snapshots and append chronological updates when
trusted context changes without invalidating the cached prompt prefix.

Track dates, individual prompt files, git status, git diffs, recent commits,
and directory listings as independent sources. Advance snapshots after
compaction and preserve legacy transient system prompts when disabled.

Add the cache_stable_prompts user setting and expose it in the settings dialog.

Signed-off-by: Djordje Lukic <[email protected]>
@rumpl
rumpl requested a review from a team as a code owner July 15, 2026 15:26
@aheritier aheritier added area/config For configuration parsing, YAML, environment variables area/runtime Runtime engine, agent loop execution, tool dispatch, loop detection area/sessions For features/issues/fixes related to session lifecycle (resume, persistence, export) area/tui For features/issues/fixes related to the TUI kind/feat PR adds a new feature (maps to feat:). Use on PRs only. labels Jul 15, 2026
@dgageot
dgageot merged commit b43f3ea into docker:main Jul 15, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config For configuration parsing, YAML, environment variables area/runtime Runtime engine, agent loop execution, tool dispatch, loop detection area/sessions For features/issues/fixes related to session lifecycle (resume, persistence, export) area/tui For features/issues/fixes related to the TUI kind/feat PR adds a new feature (maps to feat:). Use on PRs only.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants