Skip to content

fix(chat): hide the raw 'Tool removed: ask_user_question' line (#140) - #150

Merged
Birfy merged 1 commit into
ThinkFlowLab:mainfrom
Birfy:cursor/hide-tool-removed-ask-user-dae8
Oct 16, 2026
Merged

Birfy merged 1 commit into
ThinkFlowLab:mainfrom
Birfy:cursor/hide-tool-removed-ask-user-dae8

Conversation

@Birfy

@Birfy Birfy commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

Hides the raw Tool removed: ask_user_question line that DSH core shows in Bot chats. FlyBot removes ask_user_question from Bot sessions on purpose, which is what produces the notice.

ContextCell now returns nothing for those tool-removal notices only. Other tool-change context and tool-call cells are unchanged. Covered by a test.

Closes the last remainder of #140.

Fixes #140

FlyBot already restrict()s ask_user_question off Bot sessions. DSH then
writes a developer tool-removal context cell, and the chat UI prints
"Tool removed: ask_user_question". Shadow that context node and hide
only those notices; other tool cells stay.

Fixes ThinkFlowLab#140.

Co-authored-by: Danyang Chen <birfychen@gmail.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T14:44:19.183576Z 69bdf28 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Birfy
Birfy added this pull request to the merge queue Oct 16, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 69bdf28dc8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread core/src/client/cells.js
Comment on lines +516 to +517
if (block?.type === 'tool-removal' && block.toolName) parts.push(`Tool removed: ${block.toolName}`)
else if (block?.type === 'tool-addition' && block.toolName) parts.push(`Tool added: ${block.toolName}`)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Route context labels through the locale service

When the DSH language is Chinese and hidePluginTools changes a Bot's allowed plugin tools (core/src/host/hooks.js:642-656), this replacement renders those non-hidden addition/removal blocks with hard-coded English. Client copy is meant to follow the active DSH language (core/src/client/i18n.js:1-3), and unlike the surrounding cells these labels never call t(), so the rows stay English and cannot update on a language switch; route both labels through the locale service and add their Chinese entries.

Useful? React with 👍 / 👎.

Merged via the queue into ThinkFlowLab:main with commit 42eed0f Oct 16, 2026
6 checks passed
Sign up for free to 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.

Chat shows raw 'Tool removed: ask_user_question' cell (remainder of #140; DSH core cell)

2 participants