Skip to content

feat(desktop): 插件设置页添加隐藏 claude-mem observer 会话的开关#477

Open
963656544 wants to merge 2 commits into
NanmiCoder:mainfrom
963656544:feat/hide-claude-mem-observer-sessions
Open

feat(desktop): 插件设置页添加隐藏 claude-mem observer 会话的开关#477
963656544 wants to merge 2 commits into
NanmiCoder:mainfrom
963656544:feat/hide-claude-mem-observer-sessions

Conversation

@963656544
Copy link
Copy Markdown

Summary

在 claude-mem 插件详情页新增"隐藏 observer 会话标签页"开关,开启后侧边栏自动过滤
claude-mem 后台观察线程产生的会话记录。

claude-mem 通过 Claude Agent SDK 在后台启动 observer session 监控主会话并生成进度摘要,
这些会话的 session 文件被 cc-haha 扫描到后展示在侧边栏中,用户看到不属于自己操作的内容,
容易造成困惑。

Test plan

  • 安装 claude-mem 插件后,进入 设置 → 插件 → claude-mem,能看到"隐藏 observer 会话标签页"开关
  • 开关默认关闭,侧边栏正常显示所有会话
  • 开启开关后,侧边栏中 claude-mem observer 项目下的会话立即消失
  • 关闭开关后,observer 会话恢复正常显示

Changed surface

  • desktop

@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels May 16, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 16, 2026

PR quality triage

Changed areas: area:desktop

CLI core policy: No CLI-core policy block detected.

Missing-test policy: No missing-test policy block detected.

Coverage baseline policy: No coverage-baseline policy block detected.

CLI core files:

  • none

Coverage policy files:

  • none

Expected checks:

  • change-policy
  • desktop-checks
  • desktop-native-checks
  • coverage-checks

Test coverage signals:

  • No obvious missing-test signal from changed paths.

Risk notes:

  • Desktop state/API layer changed: verify store persistence, WebSocket behavior, and startup errors.

Hard merge gates still come from GitHub Actions, not AI review.

Dosu handoff: Dosu can be used as the AI reviewer for risk explanation, missing-test prompts, and maintainer Q&A. If it does not comment automatically from the PR template, ask:

@dosubot review this PR for changed-area risk, missing tests, docs impact, desktop startup risk, and CLI core impact.

@963656544
Copy link
Copy Markdown
Author

@dosubot review

@dosubot
Copy link
Copy Markdown

dosubot Bot commented May 16, 2026

Hi @963656544! I'm Dosu and I’m helping the cc-haha team.

I don't perform code reviews (assessing PRs for bugs, design, style, performance, or security). However, I can help in other ways:

  • Research the affected code — I can look into how session filtering or plugin settings are currently implemented in the codebase.
  • Answer questions — e.g., how the sidebar populates sessions, how claude-mem observer sessions are identified, etc.
  • Suggest documentation updates — if this feature needs docs or changelog entries.

Let me know if any of those would be useful!

To reply, just mention @dosu.


Docs are dead. Just use Dosu.

Leave Feedback Ask Dosu about cc-haha Share Dosu with your team

金龙 and others added 2 commits May 17, 2026 00:33
在 claude-mem 插件详情页新增“隐藏 observer 会话标签页”开关,
开启后侧边栏自动过滤 claude-mem 后台观察线程产生的会话记录。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
settingsStore 测试:默认值、从用户设置还原、持久化切换。
Sidebar 测试:开关关闭时显示 observer 会话、开启时隐藏、全部过滤后显示空状态。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@963656544 963656544 force-pushed the feat/hide-claude-mem-observer-sessions branch from 8f29269 to 3799e8a Compare May 16, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:desktop enhancement New feature or request size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant