skill
adom-cli
Public Made by Adomby adom
Adom CLI — platform binary for containers, repos, workspaces, orgs, SSH keys, Hydrogen settings, and more
workspace apply removes existing tabs that teardown does not restore (round trip loses the user's layout)
adom-cli 0.6.3 on Colby's container, full cycle on an app-free bench (kcknox/ztest-bench-lite: editor | 3d-viewer + one webview):
- before:
Visual Studio Code | Staging, Web View, Hero Studio, KiCad Dashboard - after apply:
Visual Studio Code | 3D, Hydrogen(the four existing tabs in the non-editor pane were removed, as the plan's step 4 says) - after teardown:
Visual Studio Codealone. Teardown removed exactly the two tabs apply created (correct) but did not bring back the four it had displaced, so the user ends with less than they started with. I re-added them by hand through split/add-tab.
Ask: make the cycle round-trip. Two options, either is fine:
- apply records the tabs it removes (panelType, panelState, pane position) in the same
_appliedledger, and teardown restores them after removing what it created (restore before removing the last tab of a pane, so the pane-close branch is not needed). - apply defaults to merge mode (keep existing non-editor tabs, add the bench's tabs beside them, shape panes around them) and only removes existing tabs with
--replace; then teardown's "remove what I created" already round-trips.
Option 2 is also what Hydrogen Cloud's Apply button implies to a user (nothing they had open disappears without asking). Whichever is chosen, --dry-run should print the displaced tabs so the user sees what will move.