Skip to content

fix: open session working folder before artifacts exist - #420

Open
Ray0907 wants to merge 1 commit into
andrewyng:mainfrom
Ray0907:fix/410-open-session-folder
Open

fix: open session working folder before artifacts exist#420
Ray0907 wants to merge 1 commit into
andrewyng:mainfrom
Ray0907:fix/410-open-session-folder

Conversation

@Ray0907

@Ray0907 Ray0907 commented Aug 3, 2026

Copy link
Copy Markdown

Summary

  • keep the session-folder action visible before any artifacts exist
  • open the session workspace root instead of deriving the folder from the first artifact
  • give the icon-only action an accessible name
  • add a regression test for the empty-artifacts state and request payload

Root cause

RightRail rendered the folder action only when artifacts.length > 0 and used the first
artifact path to reveal its parent. The backend already resolves an empty artifact path to the
session workspace root, so the UI did not need to wait for a generated file.

User impact

Users can open a session's working folder immediately to add source files or inspect work in
progress, before OpenWorker has produced an artifact.

Validation

  • npm test — 109 passed
  • npx tsc --noEmit
  • npm run build
  • Playwright visual check — empty artifact state rendered with the folder and refresh actions

Fixes #410

@Ray0907
Ray0907 marked this pull request as ready for review August 3, 2026 07:50
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.

[UI] Add a button to open session working folder

1 participant