Skip to content

Wire up Tailwind, convert half the UI, add the Skills tab - #19

Merged
polats merged 29 commits into
mainfrom
tailwind-port
Aug 15, 2026
Merged

polats merged 29 commits into
mainfrom
tailwind-port

Conversation

@polats

@polats polats commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Supersedes #18 — that branch is an ancestor of this one, so merging this lands those commits too.

What you'd notice

  • Skills tab — upload a SKILL.md or .zip, globally or per project, and import skills already installed in your coding agents. On-thesis: we ship orx-splat, spritekit, propkit, splatkit as skills and there was no way to manage one without editing files by hand.
  • No more "session is busy — interrupt it first" — messages sent mid-turn queue and run when the turn ends.
  • Cancelling a run works when its supervisor died — previously the intent was recorded against nobody.
  • Code browser redesign — branch changes view, file-type icons, new pane header.
  • Browse… button in New Project instead of typing a path from memory.
  • Harness logo on the model pill; agents cite files they wrote as clickable chips; retained provisioning failures handled.

What changed underneath

Tailwind is wired alongside the existing stylesheet, and 20 UI files now match upstream byte-for-byte — those merge cleanly from here on. Roughly half the port.

Two properties make it incremental rather than a big bang: @theme inline compiles bg-background to var(--base), so converted utilities re-tint when theme.ts writes a palette — the Sanzo Wada palettes and the Crux vermilion are untouched. And Tailwind's output is layered while styles.css isn't, so old rules keep winning until a component's rules are deleted as part of converting it.

Verification

A screenshot harness (scripts/screenshots.sh): 20 screens against a frozen snapshot of the data dir with a pinned clock. Capture, change, capture, compare. It caught a NewProjectForm change with no guessing, and it's the only thing that can catch a silent CSS regression — an invalid utility emits nothing, so tsc and vite build both pass on a screen that renders wrong.

436 tests (up from 420), cargo fmt --check and cargo clippy --all-targets clean, tsc clean.

Two documents

  • docs/harness-and-upstream-review.md — the research: what upstream has, what adding Pi as a fourth harness would cost, what DeepSeek Harness and the Cordis paper have to teach us. Conclusion mostly "don't", with the evidence so it isn't re-opened from scratch.
  • docs/upstream-merge-playbook.md — read this before the next merge. The operating guide: api.ts doesn't move unless our backend moved with it, and a "missing" symbol is usually something we already have under another name.

Worth knowing

Three of four blockers I identified dissolved on inspection — toolsFound is our gitFound, AgentSelection is our ModelSelection, bypassPermissions is our bypass. A fourth, "make experiment wake-ups opt-in", we had already shipped in 758ad45, months earlier and defaulting off.

Not taken, with reasons in the playbook: the Codex approvals redesign (60+ hunks, 945 lines of approval flow, a project not a merge), their local-file-projects rework (contradicts our own), and everything in their researcher pivot.

The chat surface is untouched and still ours. ChatPanel imports a literature-sources picker wired into the composer, backed by an endpoint we don't serve.

🤖 Generated with Claude Code

sox8502 and others added 29 commits August 14, 2026 17:40
…ring) (alphaXiv#178)

* Queue messages sent while a turn is running

Sending a chat message while a turn is in flight previously errored with
"session is busy — interrupt it first". Instead, park the message and run
it automatically when the current turn finishes — Claude-desktop-style
mid-run steering. Lives in ChatHost above the harnesses, so Claude, Codex,
and OpenCode are all covered.

Backend: a per-session in-memory queue on ChatHost; send_message enqueues
on a busy claim and emits chat.queued; a natural turn completion drains the
next message (FIFO); user Stop and session delete clear the queue; a new
DELETE .../queue/{itemId} cancels one parked message; the messages endpoint
returns the queued snapshot for reload recovery.

Frontend: send() parks instead of bailing while busy; queued messages render
as chips above the composer with a cancel ✕; chat.queued drives the reducer;
the seed snapshot restores chips after a reload.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* Address review: drop vs re-park on drain failure, clear queue on project delete

- drain_queue re-parks a message only on a genuine busy-race (is_busy after
  the failed send); genuine setup errors and deleting sessions now drop+log
  instead of stranding a chip that re-fails on every future drain.
- delete_project clears each session's queue (parity with delete_session), so
  no parked entries orphan a deleted project.
- Image/file-only parked messages get an "N attachment(s)" chip label instead
  of a blank one.
- Import ordering + comment trims from review.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* Coalesce queued messages into one turn

When several messages are parked behind a running turn, drain them all into a
single combined turn (texts joined by blank lines, attachments concatenated,
most-recent composer overrides win) instead of running a full turn per message
— so successive steering prompts run together as soon as the turn ends.

Re-park on a busy-race restores the individual messages (front, arrival order)
so they re-coalesce on the next drain.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
* fix: make compute supervision durable

* fix: supervise managed compute safely

* fix: defer compute failure handling to API

* fix: narrow provisioning failure contract
Records three questions asked together — what upstream work we haven't
merged, what adding Pi as a fourth harness would cost, and what DeepSeek
Harness and the Cordis paper have to teach us — and the answer, which is
mostly "don't".

The evidence is here so the question isn't re-opened from scratch, and so
the one live decision (keep tracking upstream, or hard-fork) gets made with
numbers attached: 48 unmerged commits, 55 conflicted files, and a Tailwind
migration that deletes the file our brand lives in.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The picks were cut against a stale local main, before PR #17 landed the
splats work on origin. Rebased onto origin/main — no source conflicts, only
build artifacts — and rebuilt dist.

Also fixes the ahead-count in the review: the fork is 92 ahead of upstream,
not 50. The behind-count (50, of which 48 are genuinely new) was right, and
it is the one that matters — shipping our own work never moves it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
We keep merging from upstream/main rather than hard-forking. Their harness
layer is real engineering we'd otherwise maintain alone, and it is inherited
infrastructure — not the differentiator we want to spend solo-team time on.

The accepted cost is the Tailwind port plus a recurring merge tax, which
makes the port the next gating item: until it lands, every upstream UI
commit after 10 Aug needs its markup hand-translated and ~15 stay out of
reach.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Tier 0 of the theme port. Tailwind v4 is CSS-first, so this is two dev
deps, one vite plugin, and a tailwind.css that contributes utilities only.
styles.css stays imported and stays the source of truth for the tokens, the
base styles, and every component rule.

Two properties make the rest of the port incremental rather than a big bang.
`@theme inline` compiles bg-background to var(--base) instead of baking a
literal, so a converted utility re-tints when theme.ts writes a palette onto
<html> — the brand keeps working exactly as it does in hand-written CSS. And
Tailwind's output is layered while styles.css is not, so the old rules keep
winning until a component's rules are deleted as part of converting it;
there is no window where a half-converted screen silently loses a utility.

Verified rather than assumed, since this migration fails silently: a
throwaway probe confirmed bg-background resolves to var(--base),
text-persona-producer to var(--persona-producer), rounded-md to 8px, and
that stock Tailwind colors do NOT emit — the --color-*: initial reset makes
a typo'd bg-slate-500 fail loudly instead of shipping an off-brand color.
Also checked that none of the 23 utilities Tailwind emits from incidental
word matches is used as a bare className anywhere, so nothing gains meaning
it didn't have.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The port turns ~6k lines of hand-written CSS into utility classes, and that
migration fails silently: an invalid or forgotten utility emits nothing, so
tsc and vite build both pass on a screen that renders wrong. Typechecking
proves nothing here; comparing pixels does.

    scripts/screenshots.sh --snapshot     (once) freeze the fixture
    scripts/screenshots.sh baseline       before converting anything
    scripts/screenshots.sh tier1          after each tier
    scripts/screenshots.sh --compare baseline tier1

Determinism is the whole game — a baseline captured against live data diffs
against itself the moment a run finishes. So --snapshot freezes the data
dir's databases once (14M of the 1.1G; the rest is run artifacts no screen
renders) and each capture runs a throwaway copy of that. Your real data dir
is only ever read. The workdir is a fixed path rather than mktemp because
Settings -> Storage renders it, and a random temp name moved that screenshot
on its own.

Uses Playwright driving the already-installed Chrome, so no browser download.

11 of 14 screens reproduce byte-for-byte and gate the comparison, including
all nine Settings tabs — SettingsPage is the single biggest conversion risk
at 1232 lines of fork churn. The chat transcript and two side panes render
async media and settle into one of a few layouts; no amount of waiting fixed
them, so they are marked advisory and reported separately rather than
failing every run and training us to ignore the output.

Screenshots and the fixture hold real project names and chat text, so
ui/.screenshots/ is gitignored and should stay that way. Not yet covered:
the experiment tree and runs table, whose pane isn't open on this fixture's
landing view — worth wiring up before tier 2 touches TreeView.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Tier 1 of the theme port: adopt upstream's Tailwind-converted versions of the
components our fork never touched, so those files stop diverging and future
merges of them are clean. 16 files plus styleClasses.ts and FileTypeIcon.tsx,
which the converted ones import.

Zero fork churn turned out not to mean safe in isolation. Four of the intended
files are consumed by components we DID fork, and the prop contracts moved
underneath them:

  Header        wants onNewProject/onRepository, which our simplified sidebar
                deliberately dropped
  SubagentTab   passes six props to SubagentTranscript, which lives in our
                heavily-forked ChatPanel and still takes three
  PlanStrip     emits "bypassPermissions", the pre-neutralization spelling;
                our PermissionMode parses "bypass" and would reject it — a
                silent regression the typechecker would NOT have caught,
                since both sides typecheck fine on their own

Those three move in tier 2, alongside the callers they are entangled with —
PlanStrip specifically alongside 055e6bf, which reworks that vocabulary.
ExpHoverCard was the one worth adapting rather than deferring: upstream added
a code button, and our TreeView already had a branch-scoped handler to wire it
to. CodeTab and WorktreeTab are deferred separately: they need BranchChanges
and CodeBrowserHeader, which carry the code-browser redesign rather than a
conversion.

Verified against the screenshot baseline: no gated screen changed. The one
advisory screen that moved (panel-worktree) is visually identical on
inspection — it renders CodeView and GitDiff, so it was the one worth
checking by eye rather than trusting the hash.

Note what this does NOT yet do: styles.css still defines these components'
classes unlayered, so it keeps winning and the new utilities are inert. That
is why nothing moved visually. Deleting those rules is the pass that makes the
conversion live; of the 146 semantic classes these components still emit, our
fork restyled exactly two — option-menu and progress-fill — so those are the
only ones needing to survive as utilities.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Makes tier 1 real. Until now styles.css still defined these components'
classes unlayered, so it kept winning and the utilities upstream shipped with
them were inert — the conversion was in the files but not on the screen.

31 rules, 263 lines. Every screen still renders identically, gated and
advisory alike.

Working out what was safe to delete took three attempts, and the first two
were wrong in a way worth recording. Matching class tokens inside className
attributes missed NewProjectForm's `progress-fill${...}` template literal, and
so did tokenizing every string literal, because the token it produced was
`progress-fill${cloneProgress.percent`. There are 107 dynamically composed
classNames in this UI; any analysis that tokenizes will miss some of them.
Plain substring search over the non-converted files is the check that holds,
and it rescued five classes the earlier passes had marked deletable —
progress-fill, chev, grid, skill-desc, skill-name — each of which is styled
here but emitted by a component we have not converted yet.

29 classes cleared that bar, and a rule was only removed when every class in
its selector did.

The hover card is the one family the screenshots do not exercise (the tree
pane is not reachable in the fixture), so it was checked by reading instead:
upstream reproduces every hc-* descendant rule as an arbitrary variant on the
parent, down to the box-shadow and z-60. That is also the conversion idiom to
expect in tiers 2 and 3 — descendant rules get inlined onto the parent rather
than staying separate.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The tree was the largest piece of UI with no pixel coverage, which is why the
hover card's CSS deletion had to be verified by reading upstream's utilities
instead of by looking. Now covered: projects grid, tree, hover card, and the
runs table. 18 screens, all deterministic across consecutive runs.

The hover card confirms what the reading predicted — card chrome, hc-slug,
hc-stats with its divider, hc-git, hc-foot all render as they did before the
rules were deleted.

Three things had to be true at once to reach the tree, and each was wrong on
the first attempt:

  the fixture's landing project has no experiments, so the tree only renders
  after backing out to the grid and opening one that does

  the back button is titled "All projects" but its content is the project
  name, and content wins for the accessible name — getByRole found nothing,
  so it needs an explicit selector

  the left-rail selection is sticky across projects, so clicking Files before
  opening the project meant it landed on an empty Files tab; the first run
  produced exactly that, saved under the name "experiments-tree"

That last one is the reason both this commit and the previous tree attempt
checked the PNG rather than trusting a green "shot" line. A screenshot named
after the thing you meant to capture is not evidence you captured it.

Also drops the permanent "baseline" label. The screen list grows as coverage
does, and a stale label with fewer screens compares as a pile of MISSING
rather than a signal — so each tier compares against the previous tier's
label, and tier1 is the current reference.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Attempted SettingsPage, hit the wall, backed out. The tree is unchanged; what
this buys is knowing the shape before spending a week on it.

The re-apply tool is settled and works — git merge-file against the merge-base
put SettingsPage at 19 conflicts in a 3342-line file and api.ts at 5. Hand
re-application would have been far worse. The dependency shape is the problem,
not the mechanics:

  SettingsPage reads api.ts fields ours doesn't declare (toolsFound, projectId,
  enabled on ComputeTargetSummary), so it cannot move alone

  api.ts cannot move either — merging it broke App, ChatPanel and DetailDrawer
  at once, because upstream restructured file access and getFiles, ProjectFiles,
  fileUrl, getCommitDiff and getWorkingTree vanish from under three consumers we
  have not converted

  TreeView needs a `CodeView` type that only upstream's CodeTab exports, and the
  dependency scan calls it clean because the file exists — file-existence checks
  are necessary, not sufficient

So tier 2 is api.ts plus every consumer landing together, with 055e6bf folded in
rather than sequenced around it.

Worth flagging separately: upstream's settings carry features our server has no
handler for — a ProjectDefaultsTab and a rewritten GitTab hitting
/api/settings/projects and project git status, part of 11 endpoints their api.ts
adds. Those have to be dropped on the way through. A UI that typechecks against
a missing endpoint fails at runtime, which is precisely where neither tsc nor
the screenshots are looking.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The tier-2 attempt failed because I merged api.ts. That was the mistake, and
it is worth naming precisely: upstream UI that references an api symbol we
don't export is not a styling change, it is UI for a BACKEND commit we haven't
merged. `toolsFound` is 82ea072's server-side rename of `gitFound`. Merging
api.ts to make it compile pulls that whole contract across, breaks App,
ChatPanel and DetailDrawer at once, and — worst of it — disables the one check
that was catching the problem.

So the rule is: api.ts is OUR contract of record and does not move. Keep our
version of any component that trips the check. Then tsc passing is real
evidence no unmerged-backend UI slipped in, instead of evidence that we taught
the compiler to accept it.

This script computes that list BEFORE any conflict is resolved, rather than
discovering it an hour in. For SettingsPage it names six components to keep
from HEAD and why.

Two details it gets right because the first attempt got them wrong. Component
boundaries are found by brace matching, not by regex on ^function — the regex
version mis-scoped a splice and produced duplicate definitions and orphans.
And field hazards require a property read (`x.toolsFound`) or an object key,
because plenty of api field names — project, empty, background — are also
ordinary locals, and matching those as bare identifiers flagged half the file.

It also self-checks on a known-true and known-false case and exits non-zero if
the hazard test stops detecting what it claims. A preflight that silently
passes is the failure mode it exists to prevent.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
I wrote a script to predict which components couldn't be taken, then a second
to swap them, then wrote the same brace-matching bug into both three times: an
apostrophe in a comment swallowed the rest of the file, and the fix for that
made it skip components instead. Every version printed a confident list. The
last one omitted four components that genuinely use the field in question.

The check it was approximating is just tsc, and the hazards turn out to be
renames rather than missing features:

  toolsFound               is gitFound            (4 sites)
  configuredDefaultBackend is defaultBackend
  enabled                  is configured

So the fix is a one-token rewrite at each site, driven to green by the
compiler, with api.ts left frozen. No prediction is needed, because tsc already
reports the exact lines — and with api.ts frozen it cannot fail to.

Keeping the rule, dropping the machinery. The rule was the part that mattered.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The earlier entry read the cascade as inherent to tier 2. It wasn't — it was
caused by merging api.ts, which is the one file that must not move. Frozen, it
keeps tsc able to name every line where upstream UI depends on a backend commit
we haven't taken. Widened, the compiler accepts that UI and the problem becomes
invisible until runtime.

The SettingsPage hazards are renames, not missing features — toolsFound is
gitFound, configuredDefaultBackend is defaultBackend, enabled is configured — so
each is a one-token rewrite rather than a contract migration. What genuinely
can't be taken is narrower than it looked: components backed by endpoints we
don't serve, and the one component upstream restructured. Both show up as tsc
errors.

Estimate goes back to 3–4 days per file, resumable between files, from the
8–10 days the previous entry claimed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The largest file in the port (1232 lines of fork churn against upstream's
1331) and proof the rule works: api.ts never moved, and tsc went green on
its own terms rather than by widening the contract until the errors stopped.

Every error tsc raised fell into one of three buckets, and none of them
needed guessing at in advance:

  renames — toolsFound is our gitFound, configuredDefaultBackend is our
  defaultBackend. One-token rewrites.

  features backed by endpoints we don't serve — ProjectDefaultsTab and
  upstream's rewritten GitTab, dropped in favour of ours. `enabled` and
  `disabledReason` on ComputeTargetSummary belong here too: not a rename but
  82ea072's new concept of an administratively disabled compute target, so
  the greyed-out state it drives comes out rather than being faked.

  components upstream restructured — it split our Instances section into
  ComputeActivity + InstanceHistory embedded in Compute. Ours stays, because
  it carries the Reattach watchers button that upstream has no equivalent for.

Verified: 420 tests, tsc clean, and of 18 screens exactly three moved —
compute, instances and storage, the three this commit edits. All three opened
and checked; Reattach watchers is still there and the compute targets render
with upstream's conversion.

Also demotes the three tree screens to advisory. They differ across two runs
of identical code, because the chat composer's usage pill is on screen and
resolves async. They were gated because the determinism check happened to
land the same way twice when they were added — passing that check once is not
the same as being unable to drift, and gating a flaky screen just teaches you
to skim red output.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Three more under the frozen-api.ts rule. No gated screen moved, and
projects-home — which renders the wordmark — is byte-identical, so the
Southern Cross mark and the Crux name came through the conversion unchanged.

Each needed one decision beyond the merge:

  BackendLogos merged with zero conflicts and was still wrong. Both sides had
  independently added RayLogo and OpenResearchLogo at different offsets, so
  git kept two of each and only tsc noticed. A clean merge is not evidence of
  a correct one.

  Wordmark keeps our mark and name and takes upstream's converted lockup
  classes. Upstream's version is their brand, not a styling change.

  Tour keeps our TOUR_DONE_KEY and a synchronous onClose. Upstream moved tour
  completion to a server ui-state endpoint we do not serve, which is why their
  onClose returns a promise — awaiting it here would await nothing and swallow
  a failure that cannot happen.

Deferred, each for a reason the rule predicts rather than a surprise:

  Md gains exp/onOpenRun/predict while ours has fileSrc for inline media
  previews; it moves with ChatPanel and DetailDrawer, which pass those props.

  ModelPicker needs AgentSelection and OptionChoice.description from an
  api.ts we are not moving, and taking it breaks ChatPanel.

  NewProjectForm needs cloneUrl and createFolder, backed by the project-path
  picker endpoint we do not serve. 575 conflicted lines and no screenshot
  covers that form — the worst risk-to-verification ratio in the set, so it
  should not go first.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Tried the remaining files and stopped at the same wall each time, which turned
out not to be a merging problem at all. Three unmerged commits gate everything
left:

  6e4f998  githubEnabled, cloneUrl        -> CodeTab, NewProjectForm
  3cb782e  getExperimentDiff, DiffPayload -> BranchChanges, WorktreeTab, TreeView
  68f1daf  AgentSelection, OptionChoice.description -> ModelPicker, ChatPanel

SettingsPage went through because its hazards were renames of things we already
had — toolsFound for gitFound. These are new contract, so there is nothing to
rewrite them to.

Two of the three are decisions we already knew were open. 68f1daf is on the skip
list, and AgentSelection rides along with the researcher onboarding we don't
want — yet it gates the entire ChatPanel cluster. 6e4f998 is the judgement call
against our own 3cf8913. Only 3cb782e is an ordinary merge, and taking it
unblocks the whole code-browser group at once.

So the remainder is three decisions rather than a week of grinding. Worth saying
plainly that grinding harder would not have surfaced this: tsc did, and only
because api.ts stayed frozen. Widening it would have made all three look like
ordinary merge conflicts.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Blocker 1 of 3. Cherry-picks 3cb782e for its server endpoint
(/api/experiments/{id}/diff) and the api types that go with it, then takes the
converted CodeTab, WorktreeTab, BranchChanges and CodeBrowserHeader from
upstream/main. api.ts grows here, which the frozen-api rule permits precisely
because the backend grew with it — the rule is against widening the contract to
silence errors, not against merging a real server change.

Three things needed deciding rather than merging:

  3cb782e REMOVED the per-commit browsing api (listExperimentCommits,
  getCommitDiff, getWorkingTree) in favour of one branch diff. Our DetailDrawer
  still uses it and our server still serves those routes, so the removal was
  reverted and both now coexist. Inheriting a deletion is as consequential as
  inheriting an addition, and much easier to miss.

  githubEnabled gates the GitHub link and is upstream's per-project toggle. We
  have no toggle, so the honest equivalent is "this project has a repo" rather
  than a field invented to match.

  The pick also rewrote ChatPanel's worktree button to open a generic Files
  home with no session id. Ours opens the session's own worktree — reverted.

App needed real adaptation: our code tab is branch-scoped and upstream's is
experiment-scoped, so it now resolves the branch to its experiment and carries
the Changes/Files view that CodeTab expects.

Separately, the harness gets a pinned clock. projects-home moved on a run that
touched nothing near it, because half these screens render relative times
("created 15d ago") against a real wall clock while the fixture stays frozen —
so the baseline was quietly rotting overnight. Pinning "now" stabilised three
screens that had been written off as flaky, including project-chat, which is
the only coverage the chat cluster has. They are gated again, on the strength
of three runs rather than the two that misled me last time.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The form had no coverage at all, which is why converting it looked like the
riskiest work in the port. Covered now, and it reproduces.

Also settles the gating question. project-chat, panel-worktree, panel-gallery,
the tree and the hover card were gated twice — once on two runs agreeing, once
on three — and drifted both times. The flake rate is low rather than zero, and
no feasible number of sample runs distinguishes those. They are advisory for
good.

What remains gated has never moved: the nine settings tabs, files, the project
grid, the new-project form and the runs table. That is enough, because it is
what the port actually edits.

One real fix rather than a demotion: the runs table was picking up the hover
card left open by the screen before it, so the pointer is moved away first.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Two endpoints the New Project form wants, written against our own helpers
rather than lifted:

  GET  /api/project-path/status  does this path exist, is it a directory, is
                                 it empty, is it already a git repo, and does
                                 that repo point at GitHub
  POST /api/project-path/pick    the OS folder chooser

The picker is upstream's module verbatim — 86 lines shelling out to osascript,
PowerShell or zenity, with no new dependency. The status handler is ours,
because upstream's leans on helpers we don't have while we already had
localrepo::inspect doing most of the work. Two small additions support it:
git::version, and making expand_tilde public.

Verified against real paths: a repo reports initialized with its GitHub owner
and repo, an empty directory reports empty, a missing path reports absent, and
an empty query reports only whether git is installed. The picker returns
cleanly rather than hanging when the dialog is dismissed.

Correcting my own estimate while I'm here. I said porting these was about 150
lines and would let the two New Project systems merge. The first half is right;
the second is not. Upstream's folder mode creates a project with NO GitHub repo,
and our create path always clones — github_owner and github_repo are required
fields and repo_path is the clone cache. Supporting a repo-less project means
changing the project model, the worktree and branch paths derived from
owner/repo, and every compute backend that consumes them. That is what 6e4f998
spends 2401 lines on, and it is not something these two endpoints shortcut.

What they do buy is better UX for the local-repo mode we already have: live
feedback on a typed path, and a native picker instead of typing one.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Wires the folder picker into the local-repo mode: a Browse… button beside the
path input, so adopting a checkout no longer means typing a path from memory.

Two things this commit is NOT, both worth saying because I attempted both:

It does not merge the two New Project forms. Ours has four modes (local,
existing repo, new blank repo, paper) and upstream's has two (folder, paper) —
they deleted the GitHub modes we kept, and one of theirs needs a project with
no GitHub repo at all, which our backend cannot produce. A 3-way merge of the
two produced 61 errors of the tangled kind, where our bodies reference state
upstream's auto-merged regions had replaced. Reverted. Where two versions
encode different products rather than different styling, merging is the wrong
tool and converting the file buys nothing: it will conflict again next time
regardless.

It also no longer adds /api/project-path/status. I built it because the plan
said three endpoints, then found nothing to call it with — our inspectLocalRepo
already answers what the form asks. Removed it, along with the git::version and
public expand_tilde that existed only to serve it. Keeping it "for when we do
folder mode" is how a codebase accumulates endpoints nobody calls.

The picker earns its place: it is used, and picking a folder beats typing one.

Caught by the coverage added earlier in the session — exactly one gated screen
moved, and it was this form.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The compute rows threaded a projectId down to the flavor editor, which never
read it — a leftover from upstream's per-project compute settings, which we
don't have. TypeScript accepts a declared-but-unread prop, so it compiled and
sat there looking meaningful.

Also demotes experiments-table to advisory. It moved on a run that only touched
a compute row, then held still across two runs of identical code — the same
low-rate flake as every other screen with the chat pane on it. That is the
fourth time I have gated one of these and been wrong; the gate now keeps only
the screens that have never moved, which is the nine settings tabs, files, the
project grid and the new-project form.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
I said the chat cluster was gated behind AgentSelection, buried in the
researcher-onboarding commit we rejected. That was wrong, and wrong in a way I
should have caught: upstream's AgentSelection is an alias for their
OnboardingSelection, which is field-for-field our existing ModelSelection —
harness, model, permissionMode, reasoningLevel. They moved the type into api.ts
and renamed it. We already had it.

I identified the missing symbol correctly and never checked whether we had an
equivalent under another name, which is the same check that caught toolsFound
being our gitFound one commit earlier.

So this is an ordinary conversion. Two details:

menuDirection is ours — ChatPanel passes "down" so the session menu opens
downward — and upstream's body dropped the prop while keeping the
[&.drop-down]: variants that implement it. Restoring the feature was one
interpolation onto their converted markup.

OptionChoice.description is mirrored as an optional TS field rather than added
to Rust. Upstream renders it but nothing populates it on either side —
with_description has no callers in their tree — so adding a Rust field would
mean inventing data to fill dead markup. Optional here keeps the file matching
theirs, and if they ever populate it we get it free.

The picker gains a harness logo on the model pill. No gated screen moved,
because the composer only appears on advisory screens — checked by eye instead.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
PlanStrip was deferred over its "bypassPermissions" spelling, which our
PermissionMode::from_id rejects. Upstream's from_id accepts "bypass",
"bypassPermissions" and "full-access"; ours takes only "bypass". So it was
another one-token rewrite rather than a blocker — the third time this session
that a "missing" thing turned out to be something we already had under a
different name. ChatPanel now passes showResumeModes the way upstream does:
only Claude resumes by message, so only Claude can carry a mode.

The rest of the cluster stays ours, each for a reason found by trying it:

  Md needs four new dependencies, one of them a JSR package that is not on npm
  at all (@clo/react-markdown). Taking it swaps the markdown renderer, which is
  a behavioural change on screens that only have advisory coverage.

  ChatPanel is 36 conflicts in 6063 lines, and its converted version imports
  LitSourcesPicker — alphaXiv/OpenAlex/bioRxiv toggles wired into the composer,
  backed by an endpoint we do not serve. That is the research pivot living
  inside the file, so taking it means surgery, not a merge.

  DetailDrawer is a structural inversion: upstream gutted it into an
  ExperimentOverview we deleted in the rebrand, while we extended it with
  verdicts, play sessions and metrics.

  SubagentTab passes six props to a SubagentTranscript that lives in ChatPanel,
  so it moves when ChatPanel does.

  Header gains a project menu whose "Configure Repository" entry maps to the
  project-git settings we declined.

Worth separating these from the earlier deferrals: those were wrong, this list
was measured. The chat surface keeps its current styling, which costs nothing
today — it works, and it is the part of the product with the least to gain from
matching upstream's look.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Nine rules across five classes — code-tab-select, code-tree-row/name, wt-count,
wt-empty — orphaned when CodeTab and WorktreeTab took upstream's converted
markup. No screen changed.

Kept .react-flow: the xyflow canvas applies it, so it never appears in our
source and a "no references" check will always call it dead.

Two of my three attempts to find these were wrong, which is worth noting given
how often that has happened today. A loop over `git ls-files` globs reported
every class as referenced, and a `cat ui/src/**/*.tsx` corpus reported every
class as dead — bash does not expand ** recursively without globstar, so that
corpus was missing most of the tree. The answer only settled when I grepped for
one class directly and looked at the output. Two checks disagreeing is a
result: it means at least one is broken, and neither should be believed until
you know which.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Upload a SKILL.md or a .zip of a skill folder, globally or per project, and
import skills already installed in your coding agents. Uploaded skills are
written into each session worktree beside the built-in orx-* ones and appear in
the composer's / menu.

On-thesis: we ship orx-splat, spritekit, propkit and splatkit as skills, and
until now there was no way to manage one without editing files by hand.

Wired into our shell rather than upstream's. Their App and ChatPanel model the
middle pane as chat | skills | settings, having replaced Files with an
Artifacts tab; ours is chat | files | settings. Taking their versions would
have dragged that rework in, so the tab is added beside Files instead — a
widened union, one rail entry, one render branch.

Three of their Rust hunks referenced things we don't have — project.github_enabled
and a bootstrap_context — so those keep our signatures with the user-skills
calls added: skills::expand falls back to user_skills::expand, and each session
worktree gets user skills written beside the built-ins.

Two casualties of the conflict boundaries, both caught by the compiler rather
than by me reading carefully: list_skills lost its query parameter (it needs one
to scope project skills), and upstream's project_json arrived alongside ours,
delegating to a helper we don't have. Taking "ours" at a hunk whose boundary
sits mid-function leaves the other half of the function behind.

436 tests, up from 420. Both endpoints answer, and the import list correctly
finds the agent skills installed on this machine.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Our SYSTEM_PROMPT already taught the <file path="…"/> form, but only for repo
source files — so agents wrote a report into the files dir and then mentioned it
in chat as a backticked path, which the reader has to go and find. The chip
renderer was already there; nothing was telling agents to aim at it.

Ports the idea from 4cffa77 rather than the commit. Upstream's version rewrites
the reports skill to a flat artifacts directory and says explicitly that no name
such as `project/` is reserved — which contradicts our tree-mirroring layout,
where `project/` holds cross-experiment syntheses. Taking their text would have
quietly replaced our convention with theirs.

Two of the five features you asked for did not land, both for reasons worth
stating plainly:

055e6bf (Codex approvals) is 60+ hunks across 17 files, including 945 lines of
approval-flow change in chat/mod.rs and 28 hunks in ChatPanel, our most heavily
forked file. It does not collide with our mcp-gate bridge or plan_gate, which I
checked — it is simply a large coherent redesign spanning both halves, and our
approvals work today. That is a project, not a merge.

c43180c (opt-in wake-ups) we already have. Our autoPrompts — per project, all
defaulting off, "unsolicited agent turns proved intrusive" — landed in 758ad45
before upstream shipped theirs. It also builds on the 055e6bf rework, so it
could not be taken alone regardless.

7dc5155 (UI-agnostic agent guidance) is copy hygiene for upstream's prompts,
replacing "in the Git tab" with "enable GitHub syncing". Our prompts are
different prompts.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The review records what we found; this records how to do it. It exists because
most of the cost in that session was rediscovering the same handful of traps.

The two things worth reading before anything else: api.ts does not move unless
our backend moved with it, and a "missing" symbol is usually something we
already have under another name — three of four blockers dissolved that way,
and a fourth turned out to be a feature we had shipped months earlier.

Also lists what to take next (055e6bf, and it is days not hours), what is
unconverted and why two of those are blocked by more than effort, and what to
never take.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@polats
polats merged commit 49fdb83 into main Aug 15, 2026
7 checks passed
@polats
polats deleted the tailwind-port branch August 15, 2026 03:19
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.

3 participants