fix(craft): only include org_info/ when demo data enabled#7845
Merged
rohoswagger merged 1 commit intomainfrom Jan 27, 2026
Merged
fix(craft): only include org_info/ when demo data enabled#7845rohoswagger merged 1 commit intomainfrom
rohoswagger merged 1 commit intomainfrom
Conversation
Contributor
Greptile OverviewGreptile SummaryConditionally includes the org_info section in AGENTS.md based on whether demo data is enabled, preventing non-demo sandboxes from referencing missing
The implementation is clean and follows the existing pattern of template placeholder replacement. The change prevents confusion and errors in non-demo environments where the Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant SM as SandboxManager
participant DM as DirectoryManager
participant AI as agent_instructions.py
participant T as AGENTS.template.md
Note over SM: setup_session_workspace called with use_demo_data flag
SM->>DM: setup_agent_instructions(include_org_info=use_demo_data)
DM->>AI: generate_agent_instructions(include_org_info)
AI->>AI: build_org_info_section(include_org_info)
alt include_org_info is True
AI->>AI: Return ORG_INFO_SECTION_CONTENT
else include_org_info is False
AI->>AI: Return empty string
end
AI->>T: Read template file
T-->>AI: Template with {{ORG_INFO_SECTION}} placeholder
AI->>AI: Replace {{ORG_INFO_SECTION}} with org_info_section
AI-->>DM: Generated AGENTS.md content
DM->>DM: Write to sandbox/AGENTS.md
DM-->>SM: Setup complete
|
Weves
approved these changes
Jan 27, 2026
eae0f5f to
dba13cd
Compare
dba13cd to
080dc4f
Compare
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.
Description
we were always including
org_info/directory in root and inAGENTS.md, should only be done when using demo dataHow Has This Been Tested?
locally
Additional Options