Repository navigation
feat(interactive): let each workspace folder set its own arf - #1988
Conversation
5c7d0a2 to
eed1915
Compare
renkun-ken
left a comment
There was a problem hiding this comment.
I ran the discovery and backend suites and both real-arf adoption tests on macOS with arf 0.7.2. All 49 passed, including evaluation after the agent closed.
I’m requesting changes to the workspace-folder setting, the CLI deadline, and the handling of arf restarts during discovery and bootstrap. The inline comments include the observed behavior and suggested regression coverage.
eed1915 to
0d9523e
Compare
renkun-ken
left a comment
There was a problem hiding this comment.
The same-PID restart check and bootstrap over the verified attach connection both passed on 0d9523e. The user guide now covers private session directories, and discovery returned at five seconds with a SIGTERM-handling wrapper. All 60 focused local tests passed on macOS with arf 0.7.2, including the two real adoption tests.
I also ran Connect in a two-folder VS Code 1.145.2 workspace. With a file open in A or B, it ran that folder’s configured executable. The manifest assertion covers the scope change. I’m requesting fixes for the first-folder setting when Connect is launched from an empty or untitled editor and for the pipes left open after a wrapper times out. I’ve included the observed results inline, along with a small developer README correction.
0d9523e to
04ced2c
Compare
e544344 to
026b0e3
Compare
renkun-ken
left a comment
There was a problem hiding this comment.
Verified the folder selection on 026b0e3e in VS Code 1.145.2 with distinct arf executables for folders A and B and a third workspace-wide setting. Connect ran each open file’s folder executable from that folder. With no editor or an untitled file active, it ran A’s executable from A. New Session offered the same executable in all four cases.
The stacked base also addresses the other two items from my last review. The CLI timeout closes both output pipes, and the developer README describes bootstrap on the verified attach connection. The inherited-pipe regression passed. Across the discovery and backend suites, the two real-arf adoption tests, and the new VS Code fallback regression, all 83 local tests passed. Approving.
026b0e3 to
901adf1
Compare
renkun-ken
left a comment
There was a problem hiding this comment.
Rechecked 901adf1 against 983d5fc. The PR patch is identical to the one approved on 026b0e3. In VS Code 1.145.2, Connect and New Session used each open file’s folder-specific arf and fell back to the first folder with no editor or an untitled file. The updated base also passed the test that adoption preserves the listing that found the session. All 89 focused local tests passed on macOS, including both real-arf adoption tests.
I found one nonblocking case in the base’s InteractiveManager.pick(). When Connect opens with no editor, it lists with folder A’s arf. I then opened a file in B through the VS Code API while the real picker remained open. Selecting New persistent R session offered B’s arf. pick() had captured undefined, so create() read the active editor again. Capturing the fallback folder URI when the picker opens would keep listing and creation on the same folder. I verified the provider selection and dismissed it before launch.
r.interactive.arfPath had no scope, so VS Code read it per window and every workspace folder used one value, both for listing running arf sessions and for new sessions. It is now machine-overridable, so a folder can set its own arf, which listing and new sessions resolve from the folder they are for. Without an editor in a workspace folder, as when Connect runs from an empty or untitled editor, the first folder's setting applies, as its directory does.
901adf1 to
512328f
Compare
|
I checked the version merged into I also rechecked the two-folder behavior in VS Code 1.145.2. Connect used the first folder’s arf with no editor or an untitled file, and each folder’s own arf with a saved file open there. New Session offered the same executables. The previously reported picker edge case is still reproducible. With Connect open and no active editor, listing used folder A. Opening a file in B with |
|
The Connect picker case reported in the review, where New persistent R session used the folder of an editor opened while the picker was open, is fixed in #1992. |
r.interactive.arfPathhad no scope, so VS Code read it per window and every workspace folder used one value, both for listing running arf sessions and for new sessions.r.interactive.arfPathismachine-overridable, so each workspace folder can set its own arf. Listing and new sessions resolve it from the workspace folder they are for, as they do its directory. Without an editor in a workspace folder, as when Connect runs from an empty or untitled editor, the first folder's setting applies.