GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — File viewer and file tree do not auto-refresh after AI edits or external changes · Issue #38125 · anomalyco/opencode

File viewer and file tree do not auto-refresh after AI edits or external changes #38125

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
File viewer and file tree do not auto-refresh after AI edits or external changes#38125
Copy link
Assignees
Hona

Description

@ayanshmakwana-pixel
ayanshmakwana-pixel
opened on Jul 21, 2026
Issue body actions

Description

The file viewer (right panel) and file do not refresh automatically when:

AI modifies a file (adds lines, edits content)
AI creates a new file
A manual restart of opencode is required to see changes.

Expected Behavior
File viewer updates automatically after AI edits
New files appear in file tree immediately

Actual Behavior
File viewer shows stale content until restart
New files not visible until restart
File tree doesn't update

Environment
OpenCode Desktop (latest version)
Windows 11
Related Issues
#15996 (file view not refreshing)
#22134 (new files not showing)
#17780 (Windows path mismatch in watcher)
#32496 (file tree not refreshing)
Suggestion
The issue appears to be in packages/app/src/context/file/watcher.ts where:

invalidateFromWatcher() bails out when parent directory isn't loaded
Path normalization on Windows uses backslashes from watcher but forward slashes in store

Also does not happen alwats but mostly

Plugins

None

OpenCode version

Latest

Steps to reproduce

Open a file in the file viewer
Ask AI to modify that file (e.g., "add a new function")
Observe the file viewer still shows old content
Ask AI to create a new file
Observe the new file doesn't appear in the file tree

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Opencode app

Activity

  1. github-actions commented on Jul 21, 2026

    @github-actions
    github-actionsBot
    on Jul 21, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • The file tree panel does not refresh automatically when files or directories change #32496: File tree panel does not refresh automatically when files or directories change (same Windows environment, same symptom)
    • File watcher emits backslash paths on Windows #35329: File watcher emits backslash paths on Windows (overlaps with the Windows path normalization issue you describe)

    If your issue is already covered by one of these, consider adding details there instead.

  2. github-actions
    assigned
    Hona
    on Jul 21, 2026
  3. skyzhao1223
    added a commit that references this issue on Aug 11, 2026

    fix: normalize Windows backslash paths in file watcher to fix tree re…

    This issue will close once commit 4a38b61 is merged into the 'dev' branch.
    4a38b61
  4. github-actions commented on Sep 20, 2026

    @github-actions
    github-actionsBot
    on Sep 20, 2026 – with GitHub Actions
    Contributor
    More actions

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

  5. github-actions
    closed this as not plannedon Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @Hona
    Hona

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.