Repository navigation
fix(status): show kept docs mirror edits separately - #1871
Merged
Merged
Conversation
|
No confident findings in the specified PR diff. The description documents a representative built real-CLI run with isolated HOME, a local Git team remote, and a workspace. It also explains why Review was read-only; nothing from the PR was run, built, or installed. |
SaulMoro
approved these changes
Nov 14, 2026
SaulMoro
left a comment
Collaborator
There was a problem hiding this comment.
This was generated by AI during triage.
Approving at 8ec75e9.
What I checked
- Red on main, green here. With main's
src/status.tsbuilt, the new E2E case fails: status shows no "Kept docs mirror edits" section after the edit. With this head built, all 9 docs-mirror cases ingit-exclude-delivered-915.test.tspass on macOS, the new one included. The real CLI runs in a git team repo with workspace scope, and checks four things:- the edited guide shows with its team path, outside the plain-push list;
- unedited docs, the member's own files and a directory blocking a doc path don't show;
- the edited bytes stay as they were.
- Read-only teams. The
push --filehint is skipped forrepo.kind === 'http', the conditionassertNotReadOnlyrefusespushon. The list itself still shows, which is right: it describes local state. - Failure stays contained. An error inspecting the mirror prints one warning and the rest of status still runs. A linked docs root is skipped, as pull and doctor skip it.
- Scope. One new status section, refs #1851. Pull and push behave as before.
[P2 non-blocking]
- The same rule now lives in two places. Which kept entries count as a proposable edit is decided twice.
doctor-delivery.ts(from #1862) and this block both filtermembersDocsto entries that are regular files on both sides, each with its ownlstatpair. If one changes, doctor and status will disagree about the same file. A small exported helper next tomembersDocsinsrc/resources/docs.ts, for examplekeptDocEdits(desired, dest, repoPath), could serve both. Fine as a follow-up.
[P3 nit]
- Unlike doctor's hint, this one shows the
--pathplaceholder as"<team-path>". The line above prints the team path itself, so the member can tell what goes there. Printing the exact command per file would still save a step.
CI review. No findings, and it accepts the Windows real-CLI record. We agree; the E2E run above covers macOS.
Merge risk. Low. Status gets a read-only section, and errors are contained.
1 task done
Walternater
added a commit
to Walternater/teamai-cli
that referenced
this pull request
Nov 15, 2026
`status` and `push` only scanned the team clone's checkout, which `pull` keeps clean, so an edit a member made in the docs mirror (`sharing.docs.localDir`) was invisible while `doctor` skipped those files as copies (Tencent#1851). Scan the mirror too, at team paths `docs/<rel>`, and only for docs the team already has: the user-scope mirror is machine-wide, so a file for a doc the team does not have stays where it is. A mirror file matching a version in the team history is a copy, not an edit, so a stale copy never proposes to overwrite the team's newer file. An edit in the checkout still wins for the same path. Since plain `push` now offers the edit, drop the `status` section and the `doctor` sentence from Tencent#1871/Tencent#1862 that said it does not: they would tell a member the opposite of what `push` does.
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
Refs #1851.
Verification
git-exclude-delivered-915.test.tscase with isolated HOME, local Git team remote and workspace. Baseline did not show the section after the edit; fixed CLI shows the edited guide and its team path outside plain-push candidates, excludes unedited files, member-only files and a blocking directory, and leaves the edit unchanged.verify:worldlauncher reports that Windows is unsupported because it requires POSIX; the Git-backed E2E fixture above ran the built CLI instead.