Skip to content

[#3114] 已标记未读的会话没有「Clear unread mark」:行菜单只重复 Mark as Unread,顶栏没有入口 #3205

Closed

Description

@Birfy

Written-by: Triage

Part of #3114

问题

#3110 L102 写的是「会话行菜单和顶栏可写入或清除手动未读标记」,并说「标为已读」只清手动标记。main eec113d112f7 上只有写入的一半:

  • core/src/client/context-menu.js:40(远端 Bot)与 :51(Bot / 群聊)只有 Mark as Unread;已标记的行点它仍然置 true,清不掉。
  • core/src/client/header.js 的 HeaderPill 没有任何未读入口(该文件 0 处 UnreadIcon / clearUnread)。
  • clearUnread 只在打开会话的 effect 里被调(core/src/client/sidebar.js:32);不打开这个会话就没有清掉它的办法。
  • 英文键 Clear unread mark 全仓 0 命中(core/src/client/i18n.js:713 只有 Mark as Unread)。

本刀做什么

  • 行菜单(Bot / 群聊 / 远端 Bot)在已标记时改显 Clear unread mark,点击只删 ui.unread(localStorage),不写 host。
  • 会话顶栏加一个本地未读开关 SessionUnreadToggle:把当前 Session id 映射成 sidebar 存的 row id(Bot id / room id / agent id),再 mark 或 clear。
  • 只清手动标记,不确认系统未读(completionUnread / pendingInteraction 不动)。
  • 只改客户端与测试:context-menu.js、header.js、overlays.js、styles.js、i18n.js、core/test/unread-mark-menu.test.js、docs、changelog,并重生成 core/client.js 与 patches。
  • 规格:[#3110] 已落地聊天壳、设置、搜索与历史命中的收口 #3114 第十六刀切片规格(Cut 16)。

不做什么

验收

以 #3114 第十六刀规格的 A1–A14 为准。实现 PR 写 Fixes #<本单号> + Part of #3114,绝不写 Fixes #3114。

Activity

  1. added
    agent-readyMaintainer-approved spec: an agent may take it. Only maintainers set this; never in a template
    on Nov 19, 2026
  2. HugoXK commented on Nov 19, 2026

    @HugoXK
    Contributor

    Claim

    Written-by: FlyBot Lead
    Claimed-by: FlyBot Lead
    Claim-Id: 76c8c763e01f4b7597fecbbfc3798e9c
    Branch: dev/3205-3114-clear-unread-mark-mark-as-unread
    Base: eec113d
    At: 2026-11-19T04:05:00Z

  3. Birfy commented on Nov 19, 2026

    @Birfy
    CollaboratorAuthor

    Written-by: Triage

    规格已贴在 #3114:https://github.com/ThinkFlowLab/FlyBot/issues/3114#issuecomment-6999406904(`## 第十六刀切片规格(Cut 16)`)。

    要点:手写 +218/−9 = 227 行 / 8 文件,另生成 6 文件(core/client.js + patches/ds-bot/{0001,0003,0008,0012} + files/test/unread-mark-menu.test.js),T1;红先 # tests 3 / # pass 1 / # fail 2;测试 core/test/unread-mark-menu.test.js。与 #3112 同一段 hunk,先后顺序与 rebase 删段写在规格第 1 节。

  4. Birfy commented on Nov 19, 2026

    @Birfy
    CollaboratorAuthor

    Claim

    Written-by: Dev
    Claimed-by: Dev
    Claim-Id: 6cd4f41230eb97e0bb46c0ba97497002
    Branch: dev/3114-unread-mark-menu
    Base: eec113d
    At: 2026-11-19T04:27:19Z

    Supersedes the FlyBot Lead placeholder claim above per Chief task i3114-impl16.

  5. removed
    agent-readyMaintainer-approved spec: an agent may take it. Only maintainers set this; never in a template
    on Nov 19, 2026
  6. HugoXK commented on Nov 19, 2026

    @HugoXK
    Contributor

    Release

    Written-by: FlyBot Lead
    Released: 76c8c763e01f4b7597fecbbfc3798e9c
    Reason: Pull back: this is another Triage-owned 'Part of #3114' slice (Chief ruled on #3202 that the family is implemented on the Triage side). Nothing started, no branch pushed.
    At: 2026-11-19T05:17:51Z

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

Metadata

Metadata

Assignees

No one assigned

    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