Skip to content

[FEATURE]: Display current working directory (cwd) permanently in TUI #9991

Closed

Description

@gab-core

Feature Request

Description

It would be helpful to always see the current working directory (cwd) displayed somewhere in the TUI interface (e.g., in the header, status bar, or a dedicated area).

Use Case

When working with multiple projects or in a monorepo structure, it's easy to lose track of which directory OpenCode is currently operating in. Having the cwd permanently visible would:

  1. Reduce confusion - Immediately know which project/folder you're working in
  2. Prevent mistakes - Avoid running commands or making changes in the wrong directory
  3. Improve UX - No need to manually run pwd to check the current location

Proposed Solution

Display the current working directory in one of the following locations:

  • In the header/title bar area
  • In a status bar at the bottom
  • As a subtle indicator somewhere in the UI

Current Workaround

Currently, the only way to see the cwd is to ask the agent to run pwd, which interrupts the workflow.

Additional Context

This is especially useful when:

  • Working with meta-repos or workspaces containing multiple sub-projects
  • Switching between different project directories
  • Running OpenCode from different terminal locations

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 22, 2026
  2. github-actions commented on Jan 22, 2026

    @github-actions
    Contributor

    This feature request might be related to the previous request in #9881 which also involved making the current directory/worktree more visible in the TUI. While that issue focused on filtering session lists by directory, your request addresses the broader need for always displaying the cwd in the interface. These could potentially be addressed together as part of a larger TUI improvement.

  3. davidgamero commented on Feb 9, 2026

    @davidgamero

    this was previously in the footer, but now is in the sidebar which can be opened with ctrl+x b

    initially footer was removed from session view here #7365

    Remove footer overlay when sidebar is hidden to improve screen real estate

    then restored on dev in #12245
    next reverted in #12836

    Dax intentionally removed the footer it seems, reverting commit that restored it

    hopefully we can get an option to enable the footer again or a different dynamic way to show some live indicators like the proposal in the issue linked by the bot

  4. Helios12345 commented on Feb 15, 2026

    @Helios12345

    hi,
    still wondering, if and why that is not possible.
    i'd like to permanently see the actual folder i'm working on, it's nearly impossible to keep the overview with multiple sessions without seeing in which folder/project you are working right now (where the opencode session was started from). how are you guys handling that right now? am i missing something? to me that is an essential feature...

    i'm on latest opencode version, but i can't tell you on which version - it disappeared when i updated to 1.2.xxx - i also want to see permanently the opencode version in the UI if possible, was working before, but disappeared :(

  5. github-actions commented on Apr 17, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  6. nivethan-geminate commented on May 12, 2026

    @nivethan-geminate

    @Helios12345 i found both inside the sidebar.

    ctr+p > show sidebar
    Now you can see both version and current project path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions