Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Thread names can get out of sync: localStorage override vs Codex thread name (single source of truth)

Đang mở
#452 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Start with src/features/threads/hooks/useThreadTurnEvents.ts and src/features/threads/hooks/useThreadActions.ts, tracing localStorage reads and thread/name/updated handling. Verify the rename action still calls thread/name/set with an optimistic update, and confirm that external Codex name updates are reflected in the thread list without a local override masking them.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

CodexMonitor persists renamed thread names in localStorage (codexmonitor.threadCustomNames) in addition to setting the name in Codex via thread/name/set.

If a local custom name exists, CodexMonitor ignores thread/name/updated events (src/features/threads/hooks/useThreadTurnEvents.ts early-return), so renames done outside CodexMonitor (Codex CLI / VSCode / another machine syncing CODEX_HOME) do not show up and the UI can diverge.

Repro

  1. Rename a thread in CodexMonitor.
  2. Rename the same thread in Codex (outside CodexMonitor) to a different name.
  3. CodexMonitor keeps showing the old name because the local override wins (also used when building the thread list in src/features/threads/hooks/useThreadActions.ts).

Expected
Codex thread name is the single source of truth; CodexMonitor always reflects Codex names / thread/name/updated.

Actual
Local custom name can permanently mask Codex updates.

Suggestion

  • Remove threadCustomNames persistence and rely only on Codex names (keep rename by calling thread/name/set, with optimistic UI update).
  • Optional migration: on startup, push any existing local overrides into Codex once, then clear localStorage.
Ngôn ngữ chính
TypeScript
Star
4.3k
Fork
416
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Dimillian/CodexMonitor

Tất cả issue của Dimillian/CodexMonitor

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.