Skip to content

fix(desktop): refresh history titles after topic changes / 主题变更后同步刷新历史标题 - #8418

Open
xxoingr wants to merge 1 commit into
esengine:main-v2from
xxoingr:codex/fix-8280-history-title-refresh
Open

fix(desktop): refresh history titles after topic changes / 主题变更后同步刷新历史标题#8418
xxoingr wants to merge 1 commit into
esengine:main-v2from
xxoingr:codex/fix-8280-history-title-refresh

Conversation

@xxoingr

@xxoingr xxoingr commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Refresh the open HistoryPanel session snapshot whenever project-tree:changed reports a topic title update.
  • Keep session-list reloads disabled while HistoryPanel is closed to avoid unnecessary disk scans.
  • Recheck the current history view before applying an asynchronous refresh so a closed or replaced panel cannot receive stale results.
  • Add focused regression coverage for the project-tree event wiring and callback initialization order while keeping App.tsx within its repository size ratchet.

Issues

Fixes #8280

Verification

  • cd desktop/frontend && pnpm exec tsx src/__tests__/history-refresh-contract.test.ts
  • cd desktop/frontend && node_modules/.bin/tsc.cmd --noEmit
  • cd desktop/frontend && node_modules/.bin/eslint.cmd "src/**/*.{ts,tsx}"
  • cd desktop/frontend && node scripts/test-todo-visibility.mjs
  • Frontend discovery suites covered in a segmented Windows run; the existing timing-sensitive failure passed 91/91 when rerun in isolation, and all remaining suites passed.
  • go vet ./...
  • go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.12.2 run --timeout=5m ./...
  • go run ./tools/repolint
  • git diff --check upstream/main-v2...HEAD

Documentation impact

Documentation-impact: none - This change restores the existing desktop history-title synchronization behavior without changing features, configuration, or documented user workflows.

Cache impact

Cache-impact: none - The change is limited to desktop frontend state refresh wiring and regression coverage; it does not alter prompts, tool definitions, request serialization, or provider-visible prefixes.
Cache-guard: N/A - Focused regression coverage, type checking, frontend linting, golangci-lint, and repolint cover the changed desktop-only path.
System-prompt-review: N/A

@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) labels Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: 会话内改名后侧边栏会话名称延迟更新——project-tree:changed 事件未刷新 HistoryPanel 快照

1 participant