Repository navigation
fix(agent): find the terminal files when the service runs from the build - #28
Merged
Merged
Conversation
The build bundles the controller into dist/_chunks, one directory deeper than src. The terminal helper, the claim script, and the dashboard build were resolved for the source layout only, so the service exited at startup with agent_sessions enabled. Each path now lists both layouts.
|
Architecture Data flow No data-flow sequence changed in this PR. Tip The diagrams are links. Click one to open it on the canvas, then press W or click play to walk through the change 🪧 More tips
Thanks for using PR Lens! It's free for OSS. If it helped, a star helps other teams find it. |
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
1 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Linked issue
No linked issue.
❓ Type of change
📚 Description
With
server.agent_sessions: true, a controller started from the build (dist/cli.mjs) exited at startup and systemd restarted it in a loop. The build bundles the controller intodist/_chunks, one directory deeper thansrc, so three paths written for the source layout missed: the terminal helper (dist/_chunks/terminal-helper.mjsinstead ofdist/terminal-helper.mjs),worktree-claim.sh(packages/wolfstar-agent-kit/instead of the repository root), and the dashboard build.controllerTerminalPathslists both layouts for each path and takes the first one that exists. The source layout resolves as before.desktop-session-claim.tsgets the same extra candidate for the claim script.