Repository navigation
chore(server): trim fork Git readers, OpenCode copy inference, and stale docs - #303
Merged
Merged
Conversation
…ale docs - README: PR watch bullet states the real fork difference (hold until merge/close/unwatch) - PullRequestWatchReactor: drop the redundant fork summary - git/Utils: remove dead isSameDirectory and the hand-written Git readers - worktreeSwitch: detect top level and common dir through GitVcsDriver; accept git-annex worktrees - ArchiveWorktreeRemoval: use the shared linked-worktree predicate - OpenCode usage: key session messages by lineage; drop shared copy inference and supersededKeys - build-desktop-artifact: drop the unused _flavor parameter - docs/user/usage.md: OpenCode and Antigravity also read account environments
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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.
Several fork-only server pieces duplicated upstream logic or described behavior that has changed. This trims them and fixes git-annex worktree detection (audit A7).
watch_pull_requestwatch keeps the thread working until the PR merges or closes, or the agent unwatches it.PullRequestWatchReactor.tsmatches upstream again.isSameDirectoryhelper and its two tests..gitparsers (readGitCommonDir,readCheckedOutBranch). Worktree switch and Claude workspace follow now ask Git for the top level, common directory and branch throughGitVcsDriver.execute. Archive worktree removal uses upstream'sisLinkedWorktree. Linked git-annex worktrees are now accepted. Validation stays fresh, and subdirectories and other clones are still rejected. A detached checkout still reports no branch. UpstreamdetectRepositoryis only on the registry-levelVcsDriver, soexecuteavoids new wiring.workspaceLease.tshandle errors differently. The fork's walks up on anyrealPatherror; upstream's only on NotFound. Sharing one would change one caller's fallback.session_messagerows by lineage (opencode:<origin session>:<seq>). A fork whose parent is gone still resolves to that parent. This removes the shared token/timestamp hash inference inUsageServiceand thesupersededKeysplumbing. A row already counted under its message ID from themessagetable still counts once. Accepted risks: older cached OpenCode rows keyed by message ID double count until retention, and so do copies whose parent and grandparent are both deleted._flavorparameter ofresolveDesktopBuildIconAssetsand its flavor-only assertion.docs/user/usage.mdnow says OpenCode and Antigravity also read each configured account's environment.Checks:
vp check,vp run typecheck, focused tests in apps/server (worktree switch, follow, archive removal, UsageService), provider-opencode usage, and scripts build-desktop-artifact. Reviewed by Astra and Opus; findings fixed.Done by Claude Opus 5.5 in Claude Code (T3 Code).