-
-
Notifications
You must be signed in to change notification settings - Fork 187
ci: give @claude the workspace config through --add-dir #7083
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
04cb7ec
ci: give @claude the workspace config through --add-dir
otavio 536d0a8
ci: tell the finalize job how the review ended
otavio c9e934f
ci: stop the cross-repo token persisting in the claude checkout
otavio 3e6ef98
ci: fail loudly when the workspace config does not reach @claude
otavio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Standards (judgement call) —
writing-for-agents: "Check every line for relevance: does it still bear on what the document does? A line loses relevance by never bearing on the task … or by going stale as the behaviour or world it describes changes."This line plus
CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1loadsclaude/CLAUDE.md— the workspace-root memory that the step right above deliberately does not install here.workspace.sh:145-151picks the project file instead when--projectis set:The env var reaches every added dir, so
--add-dir .../claudebrings that file back through a side channel. Its Projects table is the part that has gone stale for this job's layout — the checkout at line 62 has nopath:, so the workspace root is the shellhub checkout, whilecloud/andclaude/are nested under it:shellhub/cloud/, Claude →claude/connect/, Docs →docs/, Team →team/So the session gets the lead row asserting a path that does not exist, sitting next to
claude/shellhub/CLAUDE.md, which correctly assumes root-as-checkout. Concrete cost: an@clauderun that takes the table at face value goes looking undershellhub/for files that are at the root.Worth noting the obvious fix is not dropping this line. On PR runs
restoreConfigFromBasewipes the root.claude/before the session starts, so--add-dir .../claudeis exactly what delivers the rules and skills — remove it and you reopen the bug. The stale table is aclaude/CLAUDE.mdproblem, so the fix belongs in shellhub-io/claude#65: scope that table, or note that in CI the workspace root is the project checkout.