Skip to content

fix(session): restore directory tree in system prompt#19603

Open
AndresCdo wants to merge 4 commits intoanomalyco:devfrom
AndresCdo:fix/system-prompt-directories-19263
Open

fix(session): restore directory tree in system prompt#19603
AndresCdo wants to merge 4 commits intoanomalyco:devfrom
AndresCdo:fix/system-prompt-directories-19263

Conversation

@AndresCdo
Copy link
Copy Markdown

@AndresCdo AndresCdo commented Mar 29, 2026

Issue for this PR

Closes #19263

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This restores <directories> in SystemPrompt.environment for git projects by removing an accidental && false condition. It also adds a regression test that verifies directory tree content is included for git repos and that .opencode paths are excluded.

How did you verify your code works?

  • Ran bun test test/session/system.test.ts from packages/opencode and confirmed the new test passes.
  • Ran bun typecheck from packages/opencode.
  • Push hook also executed workspace typecheck successfully (bun turbo typecheck).

Screenshots / recordings

N/A (non-UI change).

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Mar 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

<directories> section in the system prompt is disabled

1 participant