Repository navigation
fix(session): keep the cached system prompt prefix stable across steps #1631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
RaghwendraSingh
wants to merge
5
commits into
main
Choose a base branch
from
fix/cache-stable-system-prefix
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7f696de
fix(session): keep the cached system prompt prefix stable across steps
RaghwendraSingh 374bfb8
Merge remote-tracking branch 'origin/main' into fix/cache-stable-syst…
RaghwendraSingh 51ea805
fix(workspace): keep the identity section stable across slow re-check…
RaghwendraSingh 36ec951
fix(workspace): a failed summary refresh keeps the cached contents
RaghwendraSingh 3d2a473
test(session): assert the marked prefix through the real prompt loop
RaghwendraSingh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MINOR (not blocking, pre-existing): the contents block still depends on request timing
SUMMARY_WAIT_MS(300 ms): step 1 lacks the Integrations, Workspace memory and Knowledge lines and step 2 has them. One extra full write per process on a linked project.UNKNOWN(contents.ts:258), so those lines vanish for that step. Keepinghit.valueon a failed fetch fixes this one. A merely slow refresh already keeps the old value.SKILLS_WAIT_MS. Under heavy machine load it rendered "could not be read just now".I reproduced the first two with a stubbed snapshot and summary, and saw the third in a load-affected run. This runs on every step, so the PR does not introduce it. It is safe to do in a follow-up, but it belongs in the list of what still moves the prefix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failed-refresh case fixed in 36ec951 (keeps
hit.value, retries next step, with a test); the cold-summary and skills-read races are left as follow-ups and listed in the PR body as remaining prefix movers.