Skip to content

fix(promachos): the home spans every machine the sidebar merges it over - #208

Merged
lukemaj merged 1 commit into
mainfrom
fix/promachos-home-across-machines
Oct 9, 2026
Merged

lukemaj merged 1 commit into
mainfrom
fix/promachos-home-across-machines

Conversation

@lukemaj

@lukemaj lukemaj commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

What: Promachos mode lists and renders conversations from every machine's copy of the home, the same way the sidebar merges projects.
Why: The home named one project on one environment (promachos · cavallo), so a conversation started on bestia's promachos never appeared.
So what: Needs the developer's merge approval; after merge it gets staged on cavallo per the runbook.

Fix

  • promachosHomeRefs resolves the home to every project sharing its logical key under the user's grouping settings (deriveLogicalProjectKeyFromSettings, the sidebar's own rule).
  • The conversation list and the chat presentation (usePromachosChat) use that set. The home label drops the machine name when it spans more than one.
  • New conversations still start on the chosen home project. A user who keeps projects separate keeps a single-machine home.

Evidence

  • cavallo and bestia both have ~/dev/promachos with origin github.com/lukemaj/promachos; cavallo's grouping mode is repository, so they merge.

Proof

  • vp test run src/components/promachos: 4 files, 20 tests passed, including new cross-machine and separate-mode cases.
  • apps/web typecheck passed; lint clean on src/components/promachos.
  • Not verified in a real client.

Elon record

Requirements and who asked: The developer: Promachos runs on any machine and all its conversations show in Promachos mode.
Deleted: A new Promachos-specific grouping setting; the sidebar's grouping already defines "same project".
Bottleneck: The home was a single ScopedProjectRef.
Checked myself: Read both machines' project records and cavallo's grouping setting; ran the tests and typecheck above.

Opus 5.5 via Claude Code in T3 Code.

🤖 Generated with Claude Code

The Promachos home named one project on one environment, so conversations
started on another machine's copy of the same repository never showed in
Promachos mode. The home now covers every project the sidebar's grouping
merges with it, for both the conversation list and the chat presentation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M labels Oct 9, 2026
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 20.9 KiB 20.9 KiB 0 B (0.0%) 29.3 KiB ✅
Codex Live turn messages 2 2 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.2 KiB 21.2 KiB 0 B (0.0%) 29.3 KiB ✅
Claude Live turn messages 2 2 0 (0.0%) 8 ✅

Baseline: 18229e6 · PR result: a56afce · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@lukemaj
lukemaj merged commit d670bd6 into main Oct 9, 2026
26 checks passed
@lukemaj
lukemaj deleted the fix/promachos-home-across-machines branch October 9, 2026 18:09
lukemaj added a commit that referenced this pull request Oct 14, 2026
…er (#208)

The Promachos home named one project on one environment, so conversations
started on another machine's copy of the same repository never showed in
Promachos mode. The home now covers every project the sidebar's grouping
merges with it, for both the conversation list and the chat presentation.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant