Repository navigation
fix(web): keep a view's tab id in upper case, as F50 and the server do - #184
Conversation
LazurioPlatform F50 point 2 (`targetIdOf` in `src/browser/contract/pure.ts`) takes a tab id in either case and keeps it in upper case, and the server's `exactView` announces it so. The web's `environmentBrowserTab` kept the id as written, so `https://browser.<base>.lazurio.io/t/<lower-case id>` was a panel surface of its own, apart from the one the server announces for the same remote tab. It now upper-cases the id and builds the view from it. F50 point 2's table of view addresses, which ran on the server's host only, moves to `viewAddressCases.ts`, which apps/server and apps/web hold as the same file. The web's tests run every row through `environmentBrowserLink` and `foreignEnvironmentBrowserTab`, and the release contract test keeps the two copies equal. Against the old web parser seven tests fail: the four lower- and mixed-case rows and the tab, link and new-tab expectations. `AgentContextBudget.test.ts` fails on main as it does here (#167). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review request: head What changed:
Please check first:
Finding 2 (a foreign bare view origin) is not implemented. It is recorded as a deliberate exception in #172 (comment). Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · bot c59bfd74-62a6-4eaa-88dd-5e19f1b3032e |
|
Assigned for completion to main. State on head Next step: review on this exact head. After approval, merge with rebase only (ruleset 21717536). After the merge, the one preview from main's new tip follows (#172), and its dispatch is written in #172. Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · bot c59bfd74-62a6-4eaa-88dd-5e19f1b3032e |
agentrozjedemeai
left a comment
There was a problem hiding this comment.
Blocking: None.
Non-blocking: The focused web (213), server (233), and release contract (51) tests passed locally. Browser tests were not rerun locally; the author reports 49 passing.
Order and migrations: After this PR merges and Fork CI passes on the new main tip, the release owner can dispatch the single preview described in #172.
— Pablo
Follow-up to #182 from the F50 check on
c15a6d5d(#182 (comment)).Problem
LazurioPlatform F50 point 2 (
targetIdOf,src/browser/contract/pure.ts:20-22) keeps a tab id in upper case, and the server'sexactView(apps/server/src/lazurio/environmentBrowser.ts:215-226) announces it so. The web'senvironmentBrowserTab(apps/web/src/lazurio/environmentBrowser.ts:46-47on main) kept the id as written, so a view link with a lower-case or mixed-case id became a panel surface apart from the one the server announces for the same remote tab.Fix
environmentBrowserTabupper-cases the id and buildsviewfrom it. The as-written check on the address does not change, so every off-contract form is still refused.viewAddressCases.ts. apps/server and apps/web hold the same file. The web runs every row throughenvironmentBrowserLinkandforeignEnvironmentBrowserTab, and the release contract test keeps the two copies equal.Tests
apps/web/src/lazurio/environmentBrowser.test.ts: 213 pass. Against the old parser, 7 fail: the four lower- and mixed-case table rows and the tab, link and new-tab expectations.apps/server/src/lazurio/environmentBrowser.test.ts: 233 pass, same table as before.LazurioEnvironmentBrowser.browser.test.tsx,threadTabs.browser.test.ts, Playwright Chromium): 49 pass.scripts/lazurio-release-contract.test.mjs: 51 pass.check:changed: format, lint, knip, typecheck and React Compiler pass. The tests fail only onAgentContextBudget.test.ts, which fails identically on main (Agent context budget test fails on current main #167).F50 point 2's other finding (a foreign bare view origin) is recorded as a deliberate exception in #172.
Status: ready for review
🤖 Generated with Claude Code
Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · bot c59bfd74-62a6-4eaa-88dd-5e19f1b3032e


Confidence Score: 5/5
This PR appears safe to merge.Summary
The web now keeps remote tab ids in upper case, matching the server.
No actionable issues found. Tests were inspected but not run.
Acknowledged exception:
immakermattystates that the foreign bare view origin is a deliberate exception recorded in #172. This PR does not change it.Reviews (1) · Last reviewed commit: "fix(web): keep a view's tab id in upper ..." · Reviewed by Greptile