|
| 1 | +# BUILD_PR_LEVEL_20_25_FIX_WORKSPACE_HOST_SIZE_AND_TOOL_RESOLUTION Validation |
| 2 | + |
| 3 | +## Changed Files |
| 4 | +- `tools/Workspace Manager/main.js` |
| 5 | +- `tools/Workspace Manager/toolHost.css` |
| 6 | +- `tools/shared/platformShell.js` |
| 7 | +- `docs/dev/reports/workspace_host_size_and_tool_resolution_validation.md` |
| 8 | + |
| 9 | +## Proof Host Page Fills Browser Viewport |
| 10 | +- Host root dimensions are explicitly full-page: |
| 11 | + - `tools/Workspace Manager/toolHost.css:1` `html,` |
| 12 | + - `tools/Workspace Manager/toolHost.css:2` `body.tool-host-page {` |
| 13 | + - `tools/Workspace Manager/toolHost.css:3` `width: 100%;` |
| 14 | + - `tools/Workspace Manager/toolHost.css:4` `height: 100%;` |
| 15 | +- Workspace host container also fills available area: |
| 16 | + - `tools/Workspace Manager/toolHost.css:14` `.tool-host-workspace {` |
| 17 | + - `tools/Workspace Manager/toolHost.css:15` `width: 100%;` |
| 18 | + - `tools/Workspace Manager/toolHost.css:16` `height: 100%;` |
| 19 | + |
| 20 | +## Proof Mount Container Fills Available Browser Area |
| 21 | +- Mount surface is full-size and flexed: |
| 22 | + - `tools/Workspace Manager/toolHost.css:23` `.tool-host-workspace__mount {` |
| 23 | + - `tools/Workspace Manager/toolHost.css:24` `width: 100%;` |
| 24 | + - `tools/Workspace Manager/toolHost.css:25` `height: 100%;` |
| 25 | + - `tools/Workspace Manager/toolHost.css:30` `.tool-host-workspace__mount {` |
| 26 | + |
| 27 | +## Proof No Tiny Upper-Left Constrained Viewport Remains |
| 28 | +- Direct mount iframes are now explicitly forced to full-size: |
| 29 | + - `tools/Workspace Manager/toolHost.css:111` `.tool-host-workspace__mount > iframe[data-tool-host-frame],` |
| 30 | + - `tools/Workspace Manager/toolHost.css:112` `.tool-host-workspace__mount > iframe[data-game-host-frame],` |
| 31 | + - `tools/Workspace Manager/toolHost.css:116` `width: 100%;` |
| 32 | + - `tools/Workspace Manager/toolHost.css:117` `height: 100%;` |
| 33 | +- This fixes the default browser iframe size fallback (300x150) that causes the tiny upper-left rendering. |
| 34 | + |
| 35 | +## Proof tool=palette-browser Resolves To Display Name |
| 36 | +- Query tool id is validated against existing registry/SSoT host manifest: |
| 37 | + - `tools/Workspace Manager/main.js:301` `function readRequestedToolIdFromQuery() {` |
| 38 | + - `tools/Workspace Manager/main.js:304` `if (!requested || !getToolHostEntryById(manifest, requested) || !toolIds.includes(requested)) {` |
| 39 | +- Pager label text is display-name based, not raw id/fallback string: |
| 40 | + - `tools/shared/platformShell.js:876` `data-tool-host-current-label>${escapeHtml(currentTool?.displayName || "Tool")}` |
| 41 | + |
| 42 | +## Proof Pager No Longer Shows No tool available For Valid Game/Tool |
| 43 | +- Pager default text at platform shell marker was changed from static `No tool available` to dynamic tool display name: |
| 44 | + - `tools/shared/platformShell.js:876` uses `${escapeHtml(currentTool?.displayName || "Tool")}`. |
| 45 | + |
| 46 | +## Proof Selected Tool Mounts/Activates |
| 47 | +- Runtime mount call remains active for selected tool: |
| 48 | + - `tools/Workspace Manager/main.js:563` `const mountResult = runtime.mountTool(toolId, {` |
| 49 | +- Initial load path mounts selected tool: |
| 50 | + - `tools/Workspace Manager/main.js:804` `if (!mountSelectedTool("init")) {` |
| 51 | + |
| 52 | +## Proof Missing Tool Selects First Available Tool |
| 53 | +- First available tool fallback is used only when explicit valid tool is absent: |
| 54 | + - `tools/Workspace Manager/main.js:774` `const initialToolId = requestedToolId || (toolIds[0] || "");` |
| 55 | + |
| 56 | +## Proof Invalid Tool Renders Visible Diagnostic |
| 57 | +- Invalid explicit tool query path now fails visibly instead of silently falling back: |
| 58 | + - `tools/Workspace Manager/main.js:665` `if (rawRequestedToolId && !requestedToolId) {` |
| 59 | + - `tools/Workspace Manager/main.js:667` `renderMountDiagnostic(` |
| 60 | + - `tools/Workspace Manager/main.js:696` `if (rawRequestedToolId && !requestedToolId) {` |
| 61 | + - `tools/Workspace Manager/main.js:698` `renderMountDiagnostic(` |
| 62 | + - `tools/Workspace Manager/main.js:766` `if (rawRequestedToolId && !requestedToolId) {` |
| 63 | + - `tools/Workspace Manager/main.js:768` `renderMountDiagnostic(` |
| 64 | + |
| 65 | +## Proof gameId || game Fallback Not Restored |
| 66 | +- Search checks: |
| 67 | + - `NOT_FOUND gameId || game` |
| 68 | + - `NOT_FOUND searchParams.get("game")` |
| 69 | + - `NOT_FOUND searchParams.get('game')` |
| 70 | + |
| 71 | +## Proof Samples Remain Untouched |
| 72 | +- Check result: |
| 73 | + - `SAMPLES_UNCHANGED` |
| 74 | + - From `git diff --name-only -- samples`. |
| 75 | + |
| 76 | +## Anti-Pattern Self-Check |
| 77 | +- No `gameId || game`/legacy game fallback restored: PASS |
| 78 | +- No second SSoT introduced: PASS |
| 79 | +- No samples or label changes: PASS |
| 80 | +- No broad Workspace Manager refactor: PASS |
| 81 | +- Changes remained targeted to host size + tool resolution + validation: PASS |
0 commit comments