Skip to content

fix(app): support flat event format for file watcher updates - #1

Merged
jermainewang merged 1 commit into
jermainewang:devfrom
ZoeyShao:dev
Feb 25, 2026
Merged

fix(app): support flat event format for file watcher updates#1
jermainewang merged 1 commit into
jermainewang:devfrom
ZoeyShao:dev

Conversation

@ZoeyShao

Copy link
Copy Markdown

Fixanomalyco#17: UI not updating immediately when creating new files/folders.
The invalidateFromWatcher function now supports both event formats:

  • Legacy: {type: 'file.watcher.updated', properties: {file, event}}
  • New/Flat: {file, event}
    This ensures file tree updates correctly regardless of how the SDK sends events.

Fixanomalyco#17: UI not updating immediately when creating new files/folders.
The invalidateFromWatcher function now supports both event formats:
- Legacy: {type: 'file.watcher.updated', properties: {file, event}}
- New/Flat: {file, event}
This ensures file tree updates correctly regardless of how the SDK sends events.
@github-actions

Copy link
Copy Markdown

Hey! Your PR title fix(file/watcher): support flat event format for file watcher updates doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@ZoeyShaoZoeyShao changed the title fix(file/watcher): support flat event format for file watcher updatesfix(app): support flat event format for file watcher updatesFeb 25, 2026
@jermainewang
jermainewang merged commit 9b1881b into jermainewang:devFeb 25, 2026
4 of 5 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Override Default Keymaps

2 participants

@ZoeyShao@jermainewang