Repository navigation
acp: an agent's writes to an open document are credited to it - #15
Merged
Merged
Conversation
A file the agent writes into an open document (`fs/write_text_file`, through `text.write`) is now recorded as that chat's agent's step (`sdk.Author`, fizzyedit/fizzy#474/#475), labelled with the name the agent gave in `initialize` (`agentInfo`), rather than as the person's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Takes main's pins (SDK 0.2.30, version 0.1.1), keeping this branch's crediting of the agent's document writes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Update 2026-10-18: main moved to Zig 0.17 and SDK 0.2.30 (#16), merged in here; the repin below is now main's. What this PR adds is crediting the agent's document writes.
Repins chat to fizzy SDK 0.2.29 and adopts its authors (fizzyedit/fizzy#474, fizzyedit/fizzy#475;
plans/SHARED_HISTORY_PLAN.md, step 2).fs/write_text_fileinto an open document runstext.writeinsidehost.actas this chat's agent (plugin = "chat",session= the chat's id), so its undo step is the agent's, not the person's, and the document's title reads " · <title>" while it works.agentInfo.title(elsename) from ACPinitialize; "An agent" until it says.min_sdk_version0.2.29; the SDK pinned by its release tarball.Verified:
zig build(sandboxFIZZY_PROFILE),zig build test,zig fmt --check, against the released 0.2.29 SDK. Not run live yet.🤖 Generated with Claude Code