push latest related to default layout
This commit is contained in:
+12
-7
@@ -407,13 +407,18 @@ def live_gui() -> Generator[tuple[subprocess.Popen, str], None, None]:
|
||||
cred_file = project_root / "credentials.toml"
|
||||
mcp_file = project_root / "mcp_env.toml"
|
||||
|
||||
# NOTE: do NOT copy repo-root manualslop_layout.ini to the test workspace.
|
||||
# The repo-root layout is from a pre-hub-refactor era and references window
|
||||
# names that no longer exist (Projects/Files/Screenshots/Provider/...).
|
||||
# HelloImGui will silently drop them, causing missing panels in live_gui tests
|
||||
# and in the user's interactive session. Let HelloImGui generate a fresh layout.
|
||||
# The user can delete the stale repo-root manualslop_layout.ini or use the
|
||||
# Reset Layout command (added in the Reset Layout track) to regenerate.
|
||||
# Ship a pre-baked default layout into the test workspace so every live_gui
|
||||
# session starts with a deterministic, well-organized layout (the user's
|
||||
# preferred arrangement: Project/Files/AI/Operations on the left, Discussion/
|
||||
# Log Management/Diagnostics on the right). Without this, HelloImGui auto-docks
|
||||
# on first launch in a non-deterministic way, and the user's saved repo-root
|
||||
# layout references stale pre-hub-refactor window names.
|
||||
# To iterate: open sloppy.py interactively, arrange the layout, quit
|
||||
# (HelloImGui auto-saves to cwd), then copy manualslop_layout.ini over the
|
||||
# artifact below.
|
||||
_default_layout_src = project_root / "tests" / "artifacts" / "manualslop_layout_default.ini"
|
||||
if _default_layout_src.exists():
|
||||
shutil.copy2(_default_layout_src, temp_workspace / "manualslop_layout.ini")
|
||||
|
||||
# Link assets for fonts
|
||||
src_assets = project_root / "assets"
|
||||
|
||||
Reference in New Issue
Block a user