Skip to content

refactor: rename future-rpc→rpc, gui→desktop; split build/start scripts by platform - #123

Merged
tallcode merged 3 commits into
mainfrom
claude/peaceful-mendeleev-a88c53
Aug 7, 2026
Merged

tallcode merged 3 commits into
mainfrom
claude/peaceful-mendeleev-a88c53

Conversation

@tallcode

@tallcode tallcode commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Directory renames: future-rpc/ → rpc/, gui/ → desktop/, deploy/nats/ → desktop/nats/, remote/web/index.html → desktop/web/index.html (top-level remote/ removed).
  • Crate stays future-rpc (lib future_rpc) to avoid collision with the local rpc modules in agent/cli/tui; all path deps updated to ../rpc / ../../rpc.
  • Source marker created_by "gui" → "desktop" (proto + regenerated codegen + fixtures); desktop-internal ids is_gui_chat_cwd → is_desktop_chat_cwd, command-id prefix gui_ → desktop_.
  • CI / Makefile: *-gui targets → *-desktop, binary future-gui → future-desktop, desktop:/mobile: job split, desktop-sidecars; build/start scripts split by platform.
  • Script renames: start-gui-test.{sh,bat} → start-desktop-{macos,windows}.{sh,bat}; build-macos-dmg.sh → build-desktop-macos.sh; build-windows-{portable,installer}.ps1 → build-desktop-windows-*.ps1; build-mobile-apk.sh → build-mobile-android.sh.
  • Historical/audit references preserved as-is (audit identifiers gui_rust/gui_react, {"createdBy":"gui"} snapshots, "future GUI" prose).

Test plan

  • cargo fmt --check (workspace + desktop/src-tauri)
  • cargo clippy --workspace --all-targets -- -D warnings (workspace + desktop)
  • cargo test --workspace
  • cargo test --lib (desktop/src-tauri)
  • tsc --noEmit, eslint, vitest run (desktop)
  • Merged origin/main before PR; no conflicts

🤖 Generated with Claude Code

…ts by platform

- Directory renames: future-rpc/ → rpc/, gui/ → desktop/, remote/web → desktop/web
- Crate stays future-rpc (lib future_rpc) to avoid collision with local rpc modules
  in agent/cli/tui; all path deps updated to ../rpc or ../../rpc
- created_by source marker "gui" → "desktop" (proto + regenerated code + fixtures)
- Makefile/CI: *-gui → *-desktop targets, future-gui → future-desktop binary,
  desktop:/mobile: job split, desktop-sidecars
- Scripts: start-gui-test.{sh,bat} → start-desktop-{macos,windows}.{sh,bat},
  build-macos-dmg.sh → build-desktop-macos.sh,
  build-windows-{portable,installer}.ps1 → build-desktop-windows-*.ps1,
  build-mobile-apk.sh → build-mobile-android.sh; internal paths/vars/prose updated
- Desktop-internal ids: is_gui_chat_cwd → is_desktop_chat_cwd, gui_* → desktop_* command id
- Docs/comments/audit paths and target names updated to desktop; historical
  records (future gui, gui.ts, audit gui_rust/gui_react) preserved as-is
NATS legacy local env files belong with the desktop app; deploy/ is now
empty and removed.
@tallcode
tallcode enabled auto-merge (squash) August 7, 2026 09:36
@tallcode
tallcode merged commit c465907 into main Aug 7, 2026
15 checks passed
@tallcode
tallcode deleted the claude/peaceful-mendeleev-a88c53 branch August 7, 2026 09:43
huichen added a commit that referenced this pull request Oct 10, 2026
…t behind (#982)

The client role landed over eighteen PRs and left no trace in `docs/`: neither
`CONNECTION.md` nor `PRODUCT.md` mentioned that a Desktop can connect *out*, and
both still framed the domain as phone-only. `CONNECTION` calls itself the single
maintenance location for this domain, so a reader following the repo's own
convention would have concluded the desktop client could not exist.

Added §2.2.2 (both languages): the two roles in one process, the handshake's
identity fields and why identity is not a capability, `remote_peers.json` being
separate from the host's book and why, the merged list and the `lastMessageAt`
key it needed, what is hidden rather than shown as a dead button, the capability
alignment with mobile, and the three known limitations stated as limitations
(host-side single slot, mobile's read-only catalogue observers, device
identification needing a newer host).

Corrected two claims that had stopped being true: the rail entry is always shown
(connecting out needs no account), and the feature is no longer phone-only.
`PRODUCT`'s §5.3 now says what the two directions are for.

Four things the audit turned up, all mine:

* `hiddenCount` (#955) was never called — the filter selects rows, nothing
  reports how many it withheld. Deleted, with its assertions replaced by the
  filter behaviour itself.
* `forgetRemoteToolTargets` (#974) was never called either, so the fetched
  tool-argument cache was never dropped and grew for the life of the window. Now
  wired into leaving a conversation, which is where the doc always said it went —
  and the test asserts a *re-read*, because dropping the cache would be wrong if
  nothing refetched.
* `RemoteConversationSettings` computed a refusal message, and commented that the
  user "gets a value that snapped back **and a reason why**" — but never rendered
  it. The hook's tests asserted on the state, not on the screen, so the reason
  reached nobody: the user watched a setting revert with no stated cause. Now
  rendered as an alert beside the pickers (mutation-checked: hiding it fails the
  test).
* Four translation keys (`toolRunning`, `loadOlderFailed`, `providersHint`,
  `newConversationHint`) were superseded by later changes and left behind, plus
  `pairedDevices`, which I wrote in #965 and never used. Removed.

Also verified: `thinkingLevel.*`'s six keys are built dynamically
(`t(\`thinkingLevel.${level}\`)`) and are not orphans, and the four orphan keys in
`remote.json` (`connectedAs`, `reconnectingAs`, `connectionHint`,
`agentUnavailable`) predate this work (#123, #242, #554) — left alone.

`make check-docs` reports the same failures before and after this change
(whitelisting of `agent/src/prompt/*.md`, and `docs/architecture/tasks.md` whose
Chinese pair another in-flight branch has not written yet); none of them comes
from these four files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant