Skip to content

enhancement: ability to open terminal at the root of a workspace - #6467

Merged
sid-bruno merged 2 commits into
usebruno:mainfrom
chirag-bruno:enhancement/open-terminal-at-workspace
Dec 19, 2025
Merged

sid-bruno merged 2 commits into
usebruno:mainfrom
chirag-bruno:enhancement/open-terminal-at-workspace

Conversation

@chirag-bruno

@chirag-bruno chirag-bruno commented Dec 19, 2025 •

Copy link
Copy Markdown
Collaborator

Description

This PR enhances the UX by allowing users to open a terminal session at the root of a workspace.

Contribution Checklist:

  • I've used AI significantly to create this pull request
  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

Summary by CodeRabbit

  • New Features
    • Added an "Open in Terminal" action to the collections menu. Available in the actions dropdown, this option launches the integrated terminal and switches focus to it directly from the collections section, making it faster to run command-line tasks and manage workflows.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai

coderabbitai Bot commented Dec 19, 2025 •

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

Walkthrough

Adds an "Open in Terminal" action to the CollectionsSection sidebar menu that calls openDevtoolsAndSwitchToTerminal(dispatch, activeWorkspace?.pathname), and imports IconTerminal2 and the terminal utility used by the new action.

Changes

Cohort / File(s) Change Summary
Terminal Action Menu Integration
packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js
Imported IconTerminal2 and openDevtoolsAndSwitchToTerminal; added an "Open in Terminal" item to actionsDropdownItems that invokes the terminal helper with dispatch and activeWorkspace?.pathname.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Verify the import path and exported name of openDevtoolsAndSwitchToTerminal in utils/terminal.
  • Check that activeWorkspace?.pathname is the intended identifier to pass to the terminal helper.
  • Confirm the UI label, keyboard accessibility, and icon usage match design conventions.

Suggested reviewers

  • lohit-bruno
  • naman-bruno
  • bijin-bruno

Poem

🖱️ Click the menu, a tiny light glows—

Terminal doors where the cursor goes.
One new icon, a pathway unfurled,
Dispatches open a developer world. ✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main enhancement: adding the ability to open a terminal at the workspace root, which aligns perfectly with the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3b4205f and 8e09c0f.

📒 Files selected for processing (1)
  • packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js (3 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3552e7e and 3b4205f.

📒 Files selected for processing (1)
  • packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js (2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{js,jsx,ts,tsx}

📄 CodeRabbit inference engine (CODING_STANDARDS.md)

**/*.{js,jsx,ts,tsx}: Use 2 spaces for indentation. No tabs, just spaces
Stick to single quotes for strings. For JSX/TSX attributes, use double quotes (e.g., )
Always add semicolons at the end of statements
No trailing commas
Always use parentheses around parameters in arrow functions, even for single params
For multiline constructs, put opening braces on the same line, and ensure consistency. Minimum 2 elements for multiline
No newlines inside function parentheses
Space before and after the arrow in arrow functions. () => {} is good
No space between function name and parentheses. func() not func ()
Semicolons go at the end of the line, not on a new line
Names for functions need to be concise and descriptive
Add in JSDoc comments to add more details to the abstractions if needed
Add in meaningful comments instead of obvious ones where complex code flow is explained properly

Files:

  • packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js
🧠 Learnings (1)
📚 Learning: 2025-12-17T21:41:24.730Z
Learnt from: naman-bruno
Repo: usebruno/bruno PR: 6407
File: packages/bruno-app/src/components/Environments/ConfirmCloseEnvironment/index.js:5-41
Timestamp: 2025-12-17T21:41:24.730Z
Learning: Do not suggest PropTypes validation for React components in the Bruno codebase. The project does not use PropTypes, so reviews should avoid proposing PropTypes and rely on the existing typing/validation approach (e.g., TypeScript or alternative runtime checks) if applicable. This guideline applies broadly to all JavaScript/JSX components in the repo.

Applied to files:

  • packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js
🧬 Code graph analysis (1)
packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js (2)
packages/bruno-app/src/components/WorkspaceHome/WorkspaceOverview/index.js (1)
  • dispatch (14-14)
packages/bruno-app/src/components/Sidebar/Collections/index.js (1)
  • activeWorkspace (17-17)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
  • GitHub Check: SSL Tests - macOS
  • GitHub Check: SSL Tests - Windows
  • GitHub Check: Playwright E2E Tests
  • GitHub Check: Unit Tests
  • GitHub Check: SSL Tests - Linux
  • GitHub Check: CLI Tests
🔇 Additional comments (2)
packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js (2)

29-29: LGTM!

Import statement is clean and follows project conventions.


181-188: No actionable changes needed. The code already handles the edge cases properly: openDevtoolsAndSwitchToTerminal has a default parameter (cwd = null) and guards the pathname processing with if (cwd), so it safely handles undefined values. IconTerminal2 is correctly imported from @tabler/icons v1.46.0.

Likely an incorrect or invalid review comment.

@sid-bruno
sid-bruno merged commit 7d783d4 into usebruno:main Dec 19, 2025
maxenceleblanc pushed a commit to maxenceleblanc/curly_cats2 that referenced this pull request Jul 20, 2026
)

* enhancement: ability to open terminal at the root of a workspace

* fix: imports

---------

Co-authored-by: Sid <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants