Skip to content

tui: directory indicator stays stale after /move in a new session #43938

Closed as not planned

Description

@pedro757

Description

After using /move in a newly created session to select an existing worktree, the directory indicator continues to show the base directory. It does not update until activity starts in the moved session.

Expected: the directory indicator updates immediately after /move changes the session's worktree.

Actual: there is no visible indication that the directory changed, and the base directory remains displayed.

Plugins

Local notifier.js plugin.

OpenCode version

1.18.18, installed via mise release channel.

Steps to reproduce

  1. Create a new session with /new.
  2. Use /move and select an existing worktree.
  3. Observe that the directory indicator still shows the base directory.
Image Image

Screenshot and/or share link

Not provided.

Operating System

Arch Linux, kernel 7.1.8-arch1-3, x86_64.

Terminal

Terminal application unavailable from the environment. TERM=xterm-256color, COLORTERM=truecolor.

Additional environment

Shell: /usr/bin/fish.

Activity

  1. timrichardson commented on Aug 25, 2026

    @timrichardson
    Sponsor

    this is present in v2 as well

  2. timrichardson commented on Aug 25, 2026

    @timrichardson
    Sponsor

    Fix proposed in #44829.

  3. mavasbel commented on Sep 19, 2026

    @mavasbel

    Hi @kommander, @timrichardson — thank you @timrichardson for the earlier investigation and proposal in #44829!

    Submitted PR #49560 to resolve this for active sessions on the current dev branch architecture by updating useDirectory() in packages/tui/src/context/directory.ts to inspect the active session's directory (session?.directory) as soon as SessionEvent.Moved is projected.

  4. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions