-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: re-fetch context files and skills from workspace on each turn #24360
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
e94ab99
fix: re-fetch context files and skills from workspace on each turn
kylecarbs bc24c34
fix: address review findings
kylecarbs 43269ce
fix: convert single-case switch to if per revive lint
kylecarbs ce9e867
fix: address all review comments from johnstcn
kylecarbs 5ae8a21
chore: remove plan file from tracked files
kylecarbs 51308a8
fix: revert per-turn workspace dial in else-if hasContextFiles
kylecarbs 5c8fe6c
fix: fetch context files when workspace is first attached mid-turn
kylecarbs c37e0fd
fix: clean up dead code and fix indentation
kylecarbs d73491d
fix: address deep-review findings
kylecarbs d504547
fix: inject context files mid-loop after workspace creation
kylecarbs 148e739
test(chatd): add tests for PrepareMessages and OnChatUpdated mid-loop…
kylecarbs c517ee9
fix(chatd): address round 4 review — double injection, test coverage,…
kylecarbs 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
fix: revert per-turn workspace dial in else-if hasContextFiles
The subsequent-turn branch should not dial the workspace on every message. The original code correctly reads from persisted DB content. The actual fix is the ReloadMessages callback which now re-derives instruction/skills from reloaded messages after compaction, picking up any context persisted mid-loop (e.g. when the agent changes). Removes the instructionCleared flag and three-way switch that were dialing the workspace unnecessarily.
- Loading branch information
commit 51308a8c4e1ca3b24f1b1c7aaaa7f2b7d937d8dc
Some comments aren't visible on the classic Files Changed page.
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
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.
Obs
fetchWorkspaceContextdeclares anerr errorreturn but never returns a non-nil error. (Test Auditor, Edge Case Analyst, Go Architect P3)