Skip to content

107 107-panels: one panel registry, show panel knows every panel, panels list, dock and sidebar targets, layouts - #665

Merged
AlexZ005 merged 2 commits into
mainfrom
lane/107-panels
Nov 27, 2026
Merged

AlexZ005 merged 2 commits into
mainfrom
lane/107-panels

Conversation

@AlexZ005

Copy link
Copy Markdown
Collaborator

Roadmap 107 (connector round 3), lane 107-panels: ONE panel registry and show panel on top of it.

What changes

  • The registry (src/lib/ai/panelsCore.js, a pure leaf): every real editor panel with its id, title, a one-line description of what it contains, and whether it is read-only. Also the dock and the two sidebars as named targets, and the refused surfaces, each by its exact name with its reason. src/lib/ai/panels.js (lazy) is the live half. It reads where each panel is open, and whether it is visible and in front. It opens, closes, brings forward, moves and maximizes through the app's own seams. readPanels() is the read the 107-ui-state panels field will use (107-int wires it).
  • show panel:
    • Every real panel opens by its own name: Animation (it used to open the Timeline), UV editor, Shader editor, HUD editor, Statistics, Profiler (read-only, allowed), Configure Scene ("Scene settings"), Debugger and the rest.
    • An unknown name opens nothing. The error lists the valid names and the refused surfaces by reason.
    • Answers report where / visible / front. Focus brings a covered or minimized panel to the front and says changed: true.
    • New states: toggle, move (to: dock, left, right, floating), maximize / restore (a docked panel, i.e. focus mode), and collapse / expand with pane (a panel's own sidebars: the Explorer tree, the Code sidebars, the UV / HUD / Timeline / Profiler panes, through a new src/lib/windowPanes.js seam that WindowShell registers on).
    • Dock / Left sidebar / Right sidebar: open, close (hides; the tabs stay open) and toggle.
  • show {action: "panels"} returns the whole registry with its state. It only reads, so it never asks the person and does not count against the 6-a-minute pacing (personToolReads).
  • show {action: "layout", name, state: apply | save}: the Windows ▸ Layouts named layouts. Save never overwrites an existing layout. Back re-applies what the screen looked like before.
  • Rulings (27 Nov):
    • Refusal is by exact surface, never by substring: "Profiler" is no longer refused as "profile", and "Explorer settings" is simply unknown.
    • Scene settings opens Configure Scene.
    • Publish / Export and Share a moment stay refused under publishing, and the error says so.
    • In Play, every panel / dock / layout call returns the error "panels belong to Edit", never a success.
    • Also refused while a dialog is open or while spectating.
    • Moves and layouts respect Windows ▸ Lock layout.
  • Every change leaves the person a line with Back, and show {action: "back"} undoes it.

No new tool

show grows the actions panels and layout plus new panel states. The catalog tool count is unchanged and the agent contract version is not bumped (107-int bumps it once). No wire changes: this is connector-only. A 1.84.0 peer is unaffected, so no two-peer row is needed.

Suites for the int battery

  • e2e connector-show-panels (new, 66 checks, in tests/e2e/battery.json, about 200-300 s on a Deck slot), green.
  • e2e connector-show-scene (touched rule 2 paths), green.
  • unit panels107 (new), showScene (updated), personTrust104. Full unit run: 8564 passed after the battery.json entry.
  • tools/agent catalog.test.mjs: 59 passed.

Checks

  • check-ratchet 273/37 = baseline. check:tokens clean. check:emoji clean. npm run build ok.
  • Boot: editor +0.4 KB gz (2802045 -> 2802445 B, one extra 0.3 KB chunk for the windowPanes seam), play +0.03 KB. Measured against a build with the four boot-path files at v1.84.0. Editor 2736.8 / 2740 KB, play 1713.2 / 1715 KB.

Merging with siblings (107-int)

  • 107-ui-state changes the first-use question (Always / This time / Only this / No) inside showTool's askPerson block, which this PR does not touch. The show DESCRIPTION is rewritten here: keep this one, and swap its "(Always / This time / No)" sentence plus the showScene regex for theirs.
  • personToolNames.js: this PR adds if (name === 'show') return action === 'panels'; beside their ui_state / scene_stats lines.

Later (written up for the orchestrator)

Resize panels, tab groups, dock split panes, and opening panels inside Play.

🤖 Generated with Claude Code

AlexZ005 and others added 2 commits November 27, 2026 01:04
…panel on it

Every real panel by its own name (Animation, UV / Shader / HUD editor, Statistics,
Profiler read-only and allowed); an unknown name errors with the valid names and the
block list by reason; whole-word block matching (Profiler is not profile); show
{action: panels} reads the registry with state; focus reports visible/front truthfully
and brings a hidden panel forward; Dock / Left / Right sidebar targets; move, maximize,
restore, collapse/expand a panel's own sidebars; named layouts apply/save.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ene settings opens, panels belong to Edit

Ruling 2026-11-27 (claude:9 via theprototype-41): the block list is by exact surface name with a reason
(BLOCKED entries), never a substring; Scene settings is Configure Scene; publishing / export stays refused and
the error says so. In Play, a panel / dock / layout call is an error (panels belong to Edit), never a success;
also refused while a dialog is open or while spectating; moves and layouts respect Windows > Lock layout.
A closed panel with to: opens and moves. connector-show-panels in the battery.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AlexZ005
AlexZ005 merged commit 688053a into main Nov 27, 2026
19 of 21 checks passed
AlexZ005 added a commit that referenced this pull request Nov 27, 2026
…665 #666 #667 #668 -> 1.85.0)

107-int: connector round 3 (panels, ui_state + scene_stats, files + selection, look fixes) -> 1.85.0
@AlexZ005
AlexZ005 deleted the lane/107-panels branch November 27, 2026 04:08
@AlexZ005

Copy link
Copy Markdown
Collaborator Author

In main via 107-int (#669, merge 7c2251a); released as 1.85.0 (0d3c2a3, tag v1.85.0).

julienhmmt pushed a commit to julienhmmt-forks/fork-theprototype-core that referenced this pull request Nov 27, 2026
julienhmmt pushed a commit to julienhmmt-forks/fork-theprototype-core that referenced this pull request Nov 27, 2026
…rty Code tab keeps the text and the dirty mark

claude:9 row for theprototype-app#665 (scout defect named-layout-closes-code-unasked). d1 on the dev union: connector-show-panels 75/0,
connector-show-scene 57/0. P1 gates: tokens/emoji 0, ratchet 273/37, unit 601 files 8564.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
julienhmmt pushed a commit to julienhmmt-forks/fork-theprototype-core that referenced this pull request Nov 27, 2026
…pe-app#666 union (100 tools, count unchanged)

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant