Repository navigation
fix(pi-cursor-agent): stabilize steering and forked subagents - #29
Open
akmarwah03 wants to merge 5 commits into
Open
akmarwah03 wants to merge 5 commits into
akmarwah03 wants to merge 5 commits into
Conversation
Send queued Pi user input through Cursor's conversation-action stream and replay unacknowledged actions across transport and stream restarts.
3 of 4 tasks
Forward Cursor run failures through the live event channel and distinguish request cancellation from provider errors instead of reporting both as a successful completion.
The cursor agent always couples a write call with a prequel read call. Map ENOENT / no-such-file read failures to ReadFileNotFound so the API still attempts the write for new files, instead of failing with a generic error and forcing models to fall back to shell commands. Adapted from sudosubin#17; test fixture extended with toolName/timestamp to satisfy the local ToolResultMessage type.
Prevent conversation-action writes from blocking when Cursor closes a run, and isolate forked subagents from inherited provider state.
Keep caller-provided system instructions when extracting Pi context and mirror them into an always-applied Cursor rule so provider prompts cannot silence delegated agent contracts.
|
Hi, any interest in reviewing this? I am constantly hitting issues with steering, and that the model does not understand when it reads/writes a file that does not exist. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
conversationActionTest plan
npm test(51 tests)LOCAL_WORKER_TEST_PASSEDnpm run typecheck— blocked by the existingsession_switchpeer-API mismatch insrc/index.tsCloses #18
Closes #27
Supersedes #28.