Repository navigation
chore: shorten the mobile sync notice and drop the claude/* branch convention - #666
Merged
Merged
Conversation
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.
Two small, unrelated chores, bundled into one PR as requested.
1. Mobile: shorter conversation-sync notice
mobile/src/i18n/locales.ts— entering a conversation showed a long sentence:正在同步最新内容… 当前显示可能尚未完整。→正在同步…Syncing latest content… Displayed messages may be incomplete.→Syncing…The
syncRetryingandsyncWaitingNetworkvariants keep their explicit wording, because they mean something different (retrying / waiting for the connection) rather than the plain initial sync.ChatScreen.tsxis untouched, and the existing test asserts the i18n key (chat.syncingLatest), not the copy, so no snapshot or test change was needed.2. CLAUDE.md: drop the hard-coded
claude/*branch prefixThe development-workflow section prescribed
.worktrees/<name>on aclaude/*branch. Nothing depends on that prefix (checked withgit grepacross the Makefile,scripts/, and CI workflows — no branch-name matching anywhere), so the convention now follows the Conventional Commits type of the PR title:<type>/<name>withfeat/,fix/,perf/,refactor/,docs/,chore/,test/,ci/.Also documents the exact worktree command with
--no-track:--no-trackmatters:git worktree add -b X origin/mainsets the new branch's upstream toorigin/main, so a baregit pushpublishes tomain.Not part of this PR:
.future/memory/*.mdstill referred to.claude/worktrees/<name>where the repo actually uses.worktrees/<name>; those local (gitignored) memory files were corrected in place.Checks
mobile:npm run typecheckandnpm run lintpass.mobilejest: 1398 passed / 1 failed. The single failure (MarkdownText.test.ts:29, spy onparseFutureMarkdownrecorded 0 calls) is a worktree harness artifact, not this change: withnode_modulesjunctioned to the main checkout, the component's@future-os/markdownimport resolves to the main repo'spackages/markdown, while the test spies on the worktree's copy — different module instances. The same test passes in the main checkout, and this PR does not touch the parser,MarkdownText, or any package underpackages/. CI runs a real install on Linux.make check-docsis unaffected (CLAUDE.mdis on its allowlist).