Skip to content

Conversation

@mrubens
Copy link
Collaborator

@mrubens mrubens commented Mar 14, 2025

Context

In this PR I add a new settings section for Context Management, move the existing related settings into it, and add a new setting for the number of workspace files included in context.

Screenshots

before after
Screenshot 2025-03-14 at 11 39 24 AM Screenshot 2025-03-14 at 11 38 46 AM

Important

Add context management settings section with new maxWorkspaceFiles setting and update related state management and UI components.

  • Settings:
    • Add ContextManagementSettings component to manage context-related settings in ContextManagementSettings.tsx.
    • Move terminalOutputLineLimit, maxOpenTabsContext, and showRooIgnoredFiles settings to ContextManagementSettings.
    • Add maxWorkspaceFiles setting to limit workspace files in context.
  • State Management:
    • Update ExtensionStateContext.tsx to include maxWorkspaceFiles.
    • Modify ExtensionState in ExtensionMessage.ts to include maxWorkspaceFiles.
    • Add maxWorkspaceFiles to GLOBAL_STATE_KEYS in globalState.ts.
  • UI Components:
    • Update SettingsView.tsx to include ContextManagementSettings.
    • Add Database icon to lucide-react mock in lucide-react.ts.
  • Tests:
    • Add tests for ContextManagementSettings in ContextManagementSettings.test.tsx.
    • Update ClineProvider.test.ts to test maxWorkspaceFiles message handling.

This description was created by Ellipsis for 9bbbaf2. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented Mar 14, 2025

⚠️ No Changeset found

Latest commit: 9bbbaf2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Mar 14, 2025
@mrubens mrubens force-pushed the context_management branch from 2359bee to b216913 Compare March 14, 2025 15:56
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 14, 2025
@mrubens mrubens force-pushed the context_management branch from b216913 to 9bbbaf2 Compare March 14, 2025 16:07
@mrubens mrubens merged commit 7165d7f into main Mar 14, 2025
9 checks passed
@mrubens mrubens deleted the context_management branch March 14, 2025 16:11
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Mar 14, 2025
ipattis pushed a commit to ipattis/roo-code that referenced this pull request Mar 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants