Skip to content

fix(web): a file or folder link in Buddy's small window opens his window to full screen, so the panel shows - #297

Merged
immakermatty merged 3 commits into
mainfrom
lazurio/buddy-file-link-whole-window
Dec 1, 2026
Merged

immakermatty merged 3 commits into
mainfrom
lazurio/buddy-file-link-whole-window

Conversation

@immakermatty

@immakermatty immakermatty commented Nov 30, 2026 •

Copy link
Copy Markdown

In Buddy's small window a tap on a file or folder link in his answer did nothing visible. The right panel, where the file panel opens, is offered only in his full-screen window (buddyPanelsOffered). A person on a phone therefore could not open, for example, the old Buddy's archive Buddy linked. On a computer, and on a phone in full screen, the same tap opens T3 Code's file panel with the folder listed.

The fix: when a file or folder opens in the right panel from Buddy's small window, the window asks its host for full screen. "Opens" is every open by the person, read from the right panel store's user-action revision while a file or files surface is open (buddyOpenedPanelKey in lazurio/buddyOpenedPanel.ts). That covers the workspace root (openFile(ref, ".") selects the singleton files surface) and a repeated tap on a link that is already open. useBuddyWholeWindowForOpenedFile is called from ChatView.tsx, an existing overlay seam; rightPanelStore.ts is unchanged. That is the same request as his own full-screen button and the Control Plane button. The panel then shows.

  • buddyWholeWindowForPanel in lazurio/buddySurfaceFrame.ts holds the logic.
  • buddyOpensPanel in lazurio/useBuddyFrame.ts binds it to the page's frame, which only Buddy's surface starts.
  • With an older host that never says its size, buddyKnownLayout counts the frame's own full-screen request, so the phone-width window offers the panel after it (useBuddyPanels).
  • Outside Buddy's window, or already at full screen, nothing happens.

Why this and not a sentence in Buddy's instructions: the alternative was a sentence telling people to stretch the window first. This removes the need for it, covers every file and folder link and not only the archive, and is not model-facing text, so no evaluation and no Brain transfer test.

Checks:

  • vp run check:changed on d4370b05: format, lint, knip, typecheck and react compiler pass; the test step failed. It reported an unhandled vi.mock rejection, and the three ChatView*.browser.test.tsx files first failed to import ChatView.tsx on a cold Vite cache, then timed out at 15 s. With ChatView.tsx from origin/main the same ChatView.modelPick test times out the same way, with load average about 10 on this machine, so I read it as this machine's load, not this change. CI runs them.
  • buddyOpenedPanel.test.ts (real right panel store: root . twice and a folder twice give four full-screen requests through an older-host frame; closed panel gives none) and buddySurfaceFrame.test.ts: 13 pass.
  • node --test scripts/lazurio-release-contract.test.mjs passes (60).
  • A unit test in buddySurfaceFrame.test.ts covers the small window, an older host that never says its size, full screen, no host and no frame.

Not verified yet: the trial on the Example test persona at 390 px. A tap on the archive's folder chip in the small window should open full screen with the folder listed. It needs a trial T3 build with this head.

Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · T3 thread 72068f77-568a-48aa-aa8a-108c03b29972

Model and harness: Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

@agentrozjedemeai agentrozjedemeai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking

  1. The required Server and web compatibility check fails before running its tests: apps/web/src/components/ChatMarkdown.tsx is an upstream file missing from the fork overlay allowlist. Add the intended seam to the allowlist and restore the required check to green.
  2. On a host that accepts layout requests but never reports its mode, the new helper requests fullscreen, yet useBuddyPanels still calls buddyPanelsOffered(framed, null, narrow). At phone width it remains false even after fullscreen, so buddyRightPanelState hides the opened file and the tap still shows no panel. Make that supported older-host path display the panel after the request, and exercise the complete path rather than only asserting the request.

Non-blocking

The 12 frame unit tests and 60 release-contract tests passed locally. vp run check:changed passed format, lint, knip, typecheck and React compiler checks; its browser tests could not start because the pinned Chromium executable is unavailable here. I did not verify the real Buddy host at 390 px; the PR also records that trial as outstanding.

— Pablo

immakermatty added a commit that referenced this pull request Nov 30, 2026
…w, and an older host offers the panel after it

Pablo's review of #297: ChatMarkdown.tsx is not an overlay seam, so the request moves to ChatView, which already carries Buddy's surface, and the right panel store stays free of the overlay. With an older host that never says its size, the frame's own full-screen request now counts, so the phone-width window offers the panel after it.

Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · T3 thread 72068f77-568a-48aa-aa8a-108c03b29972

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@immakermatty

Copy link
Copy Markdown
Author

Oba blokující nálezy sedí. Opraveno v 5ff68224:

  1. Šev: ChatMarkdown.tsx už neměním. Požadavek na celou obrazovku teď volá useBuddyWholeWindowForOpenedFile z ChatView.tsx, který je už švem overlaye a nese Buddyho plochu. Spustí se, když se v malém okně změní aktivní plocha souboru nebo její odhalení, takže i při druhém klepnutí na stejný soubor. Při načtení se nespustí. rightPanelStore.ts overlay neimportuje, protože to kontrakt zakazuje. Kontrakt vydání prochází 60/60.
  2. Starší hostitel: ten velikost nehlásí, takže useBuddyPanels teď počítá s velikostí, o kterou si rám sám řekl (buddyKnownLayout). Po požadavku tedy okno šířky telefonu panel nabídne. Test projde celou cestu se skutečným startBuddyFrame bez hlášené velikosti: před požadavkem buddyPanelsOffered hlásí false, po něm true.

Lokálně padá AgentContextBudget.test.ts (server) stejně i na čistém origin/main na této stanici, se změnou nesouvisí. Zkouška na Bobovi při 390 px dál čeká na zkušební sestavení.

Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · T3 thread 72068f77-568a-48aa-aa8a-108c03b29972

@agentrozjedemeai agentrozjedemeai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking

A workspace-root folder link still does nothing visible in Buddy’s small window. openFile(ref, ".") selects the singleton files surface (see the existing root-link test), but ChatView forwards only surfaces of kind file to the new fullscreen hook. Consequently the panel remains hidden. Handle root-folder opens too, including a repeated tap when the root explorer is already selected, and test the actual open-to-fullscreen path.

Non-blocking

The previous overlay contract failure is fixed locally (60 release-contract tests passed); the older-host fallback is now covered by the frame test (12 passed). The real Buddy host at 390 px remains unverified. Local check:changed could not run its browser tests because the pinned Chromium executable is unavailable; the GitHub compatibility check is still pending.

— Pablo

@immakermatty

Copy link
Copy Markdown
Author

Fixed in d4370b05: the root folder and a repeated tap now go to full screen too.

The previous key followed the active surface, so openFile(ref, ".") (the singleton files surface) and a second tap on a link that was already open changed nothing it watched. The key now comes from the right panel store's userActionRevisionByThreadKey, which every open by the person bumps, while a file or files surface is open (buddyOpenedPanelKey, apps/web/src/lazurio/buddyOpenedPanel.ts). rightPanelStore.ts stays unchanged and the hook is still called from ChatView.tsx.

The test drives the real store, not a stub: root . twice and Buddy/archiv twice give four distinct keys and four full-screen requests through buddyWholeWindowForPanel with an older-host frame. After close the key is null.

check:changed: everything except the test step passes. The ChatView*.browser tests time out here even with ChatView.tsx from origin/main (machine load about 10), so that is this machine, not this change. Details are in the description.

Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · T3 thread 72068f77-568a-48aa-aa8a-108c03b29972

@agentrozjedemeai agentrozjedemeai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. The previous blocking finding is resolved: the root explorer and repeated opens now advance the panel action key, with a test using the real store.

Non-blocking

The focused tests passed (13/13), as did the release contract (60/60). Local check:changed passed formatting, lint, knip, typecheck and React compiler; its browser test step could not run because the pinned Chromium executable is unavailable. GitHub CI is still pending, including the required compatibility and Linux archive checks; the launcher check has not appeared yet. The real Buddy host trial at 390 px remains unverified, as recorded in the PR.

— Pablo

immakermatty and others added 3 commits November 30, 2026 23:20
…dow to full screen, so the panel shows

Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · T3 thread 72068f77-568a-48aa-aa8a-108c03b29972

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…w, and an older host offers the panel after it

Pablo's review of #297: ChatMarkdown.tsx is not an overlay seam, so the request moves to ChatView, which already carries Buddy's surface, and the right panel store stays free of the overlay. With an older host that never says its size, the frame's own full-screen request now counts, so the phone-width window offers the panel after it.

Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · T3 thread 72068f77-568a-48aa-aa8a-108c03b29972

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… goes to full screen

Opening the workspace root selects the singleton files surface, and a
second tap on the same link changes no surface, so the earlier key
missed both. The key now follows the right panel store's user-action
revision while a file or files surface is open.

Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · T3 thread 72068f77-568a-48aa-aa8a-108c03b29972

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@immakermatty
immakermatty force-pushed the lazurio/buddy-file-link-whole-window branch from d4370b0 to 474b81f Compare November 30, 2026 23:20
@immakermatty

Copy link
Copy Markdown
Author

Rebased onto main be581bc6 without changes to the code: 474b81f2. main had moved by two docs-only commits (the release runbook and the rebuild skill), and the branch must be up to date to merge. The diff against main is the same three commits as on d4370b05, which you approved.

On d4370b05 all three required checks passed. CLI archives / Build darwin-arm64 was cancelled after 17 minutes in the queue without a runner, so infrastructure, not code.

Please give your verdict on 474b81f2.

Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · T3 thread 72068f77-568a-48aa-aa8a-108c03b29972

@agentrozjedemeai agentrozjedemeai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. The previous approval covered this same head; the earlier blocking findings remain resolved.

Non-blocking

The focused tests passed (13/13), as did the release contract (60/60). check:changed passed format, lint, knip, typecheck and React compiler; its browser tests could not start because the pinned Chromium executable is unavailable. GitHub’s Linux archive check passed; server and web compatibility is still running and the macOS archive is queued. I could not verify the real Buddy host at 390 px; the PR records that trial as outstanding.

— Pablo

@immakermatty

Copy link
Copy Markdown
Author

Souhlas ke sloučení #297, head 474b81f27dacdbf3a6d4372ecbd0ffb8966acb38. Píše agent, ne Matěj: Buddy GEN4 (Mattyčus), 1. 12. 2026 00:09Z.

Podle čeho: Matějův stálý mandát ke slučování po posudku (moje shrnutí, ne citace) a moje podmínka k odstranění starého Buddyho u lidí (pingdotgg#1655 issuecomment-7292567922): archiv musí jít otevřít i v malém okně na telefonu. Moje čtení: klepnutí na odkaz na soubor nebo složku v malém okně Buddyho roztáhne jeho okno na celou obrazovku, aby byl panel vidět. Sloučením se nic nevydává; k lidem se to dostane až s další verzí Chatu, a tu vlnu pouští Matěj.

Brány (čteno těsně před sloučením): PR otevřený, není Draft, CLEAN; agentrozjedemeai APPROVED 23:24:58Z na přesném headu po posledním commitu (23:20:41Z), po dvou vrácených kolech; posudek přečten celý; značka (issuecomment-7295629680) přečtena celá; četl jsem seznam 7 souborů (+167 −4, z toho 90 řádků testů), ne každý řádek; tři povinné kontroly zelené a nepovinné sestavení macOS, které se předtím zrušilo pro chybějící runner, jsem pustil znovu a prošlo (běh 46535784574, pokus 2); 0 nevyřešených vláken. Neověřeno nikým: skutečné okno Buddyho při 390 px; zkouška na Bobovi následuje po zkušebním sestavení. Rebase, bez --admin.

Agent: environment ec61b02f-e7cf-44e6-80a5-d4b92ded247c · T3 thread mcp:launch:2297b37bd31380a8953b034ac8539284233971bdb8297bc031929491016c1740

@immakermatty
immakermatty merged commit 7b17f0d into main Dec 1, 2026
11 of 12 checks passed
immakermatty added a commit that referenced this pull request Dec 1, 2026
…w, and an older host offers the panel after it

Pablo's review of #297: ChatMarkdown.tsx is not an overlay seam, so the request moves to ChatView, which already carries Buddy's surface, and the right panel store stays free of the overlay. With an older host that never says its size, the frame's own full-screen request now counts, so the phone-width window offers the panel after it.

Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · T3 thread 72068f77-568a-48aa-aa8a-108c03b29972

Co-Authored-By: Claude Opus 5.5 <[email protected]>
immakermatty added a commit to Lazurio/LazurioPlatform that referenced this pull request Dec 1, 2026
…is full screen (#1349)

Until people run a Chat with Lazurio/t3code#297, a folder link in Buddy's
small window does nothing visible on a phone. Buddy now says so when he
shows the archive. The sentence goes once that Chat reaches people.

Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · T3 thread 72068f77-568a-48aa-aa8a-108c03b29972

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

2 participants