Skip to content

fix(workspace): prevent embedded VS Code reload loops - #1256

Open
crispinhu27 wants to merge 1 commit into
mainfrom
fix/run-workspace-ide-reload
Open

crispinhu27 wants to merge 1 commit into
mainfrom
fix/run-workspace-ide-reload

Conversation

@crispinhu27

Copy link
Copy Markdown
Collaborator

What changed

Live run updates could rebuild the embedded VS Code iframe. The iframe’s release request then advanced the run revision and could trigger another redraw.

  • Keep the workspace pane connected while redrawing the run detail. Open editors, unsaved edits, and terminal sessions survive those updates.
  • Check for decision cards in approval and failure states.
  • Close terminals on workspace release and advance the run revision only when clearing a stored legacy edit lease.

Scope

  • Platform core / API / runner

Compatibility

Uses the existing run schema and workspace API. Legacy edit leases still clear when a user releases the workspace.

Validation

  • Web test suite passed (231 tests), including the regression for preserving the IDE document across redraws and removing it when the workspace is reclaimed.
  • go test ./web -count=1 and the targeted workspace editor and terminal tests in ./internal/repo and ./internal/httpapi passed.
  • Chrome against a local LoopForge built from the worktree with Docker MySQL kept the same IDE document, unsaved edit, and terminal across two detail redraws and tab switches. The test seeded a passed gate result locally and used real SOP execution, approvals, SSE, file save, and terminal operations. Leaving the page closed the terminal. Two releases of a seeded legacy lease advanced the revision once.
  • python3 scripts/check-public.py and git diff --check passed.

Safety

  • The diff contains platform code and regression tests.
  • User files and unrelated changes were preserved.

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