|
1 | | -# Codex Commands — BUILD_PR_LEVEL_20_23_MOVE_TOOL_HOST_PAGER_INSIDE_MOUNT_CONTAINER |
2 | 1 |
|
3 | | -## Model |
4 | | -GPT-5.4 or GPT-5.3-codex |
| 2 | +# Codex Command |
5 | 3 |
|
6 | | -## Reasoning |
7 | | -High |
| 4 | +Execute BUILD_PR_LEVEL_20_24_PLACE_PAGER_AT_PLATFORM_SHELL_MARKER |
8 | 5 |
|
9 | | -## Command |
| 6 | +Steps: |
10 | 7 |
|
11 | | -```text |
12 | | -Read docs/dev/codex_rules.md first. |
| 8 | +1. Open tools/shared/platformShell.js |
| 9 | +2. Locate: |
| 10 | + // pager should go here |
| 11 | +3. Replace ONLY that line with pager render logic |
| 12 | +4. Remove any other pager instances |
| 13 | +5. Ensure tool mount still works |
| 14 | +6. Do not modify unrelated code |
13 | 15 |
|
14 | | -Execute BUILD_PR_LEVEL_20_23_MOVE_TOOL_HOST_PAGER_INSIDE_MOUNT_CONTAINER. |
15 | | -
|
16 | | -User correction: |
17 | | -The tool-host-pager section must be moved out of the top-level Workspace Manager host shell and into: |
18 | | -<div data-tool-host-mount-container class="tool-host-workspace__mount"></div> |
19 | | -
|
20 | | -Current wrong structure: |
21 | | -<main class="tool-host-workspace"> |
22 | | - <section class="tool-host-pager">...</section> |
23 | | - <div data-tool-host-mount-container class="tool-host-workspace__mount"></div> |
24 | | -</main> |
25 | | -
|
26 | | -Required: |
27 | | -<main class="tool-host-workspace"> |
28 | | - <div data-tool-host-mount-container class="tool-host-workspace__mount"> |
29 | | - ...mounted Workspace Manager content... |
30 | | - <section class="tool-host-pager">...</section> |
31 | | - ...Editors... |
32 | | - </div> |
33 | | -</main> |
34 | | -
|
35 | | -Required changes: |
36 | | -1. Remove top-level section.tool-host-pager from tools/Workspace Manager/index.html. |
37 | | -2. Ensure main.js renders/creates the pager inside [data-tool-host-mount-container]. |
38 | | -3. Place pager above Editors/card grid inside mounted Workspace Manager content. |
39 | | -4. Keep pager controls wired: |
40 | | - - [PREV] |
41 | | - - current tool name |
42 | | - - [NEXT] |
43 | | - - hidden select if needed by existing code |
44 | | -5. On load, select/mount first available tool. |
45 | | -6. Prev/Next changes selected/mounted tool. |
46 | | -
|
47 | | -Forbidden: |
48 | | -- duplicate pager |
49 | | -- top-level pager before mount container |
50 | | -- appending pager to document.body |
51 | | -- putting pager above site chrome/header |
52 | | -- restoring gameId || game |
53 | | -- changing samples |
54 | | -- broad Workspace Manager refactor |
55 | | -- start_of_day changes |
56 | | -
|
57 | | -Validation: |
58 | | -Create docs/dev/reports/tool_host_pager_inside_mount_container_validation.md with: |
59 | | -- changed files |
60 | | -- proof Workspace Manager index no longer has top-level section.tool-host-pager |
61 | | -- proof section.tool-host-pager is rendered inside data-tool-host-mount-container |
62 | | -- proof pager appears above Editors/card grid inside mounted content |
63 | | -- proof pager is not above Toolbox Aid site header/chrome |
64 | | -- proof first available tool selected/mounted on load |
65 | | -- proof Prev/Next changes selected/mounted tool |
66 | | -- proof gameId || game fallback not restored |
67 | | -- proof samples remain untouched |
68 | | -- anti-pattern self-check |
69 | | -
|
70 | | -Return ZIP at: |
71 | | -tmp/BUILD_PR_LEVEL_20_23_MOVE_TOOL_HOST_PAGER_INSIDE_MOUNT_CONTAINER.zip |
72 | | -``` |
| 16 | +Return ZIP |
0 commit comments