Skip to content

feat(display): add tool_progress previews for fact_store and fact_feedback#28618

Open
zccyman wants to merge 1 commit into
NousResearch:mainfrom
atyou2happy:fix/feishu-tool-progress
Open

feat(display): add tool_progress previews for fact_store and fact_feedback#28618
zccyman wants to merge 1 commit into
NousResearch:mainfrom
atyou2happy:fix/feishu-tool-progress

Conversation

@zccyman

@zccyman zccyman commented May 19, 2026

Copy link
Copy Markdown
Contributor

Problem

When tool_progress is enabled on the Feishu platform, tools like fact_store and fact_feedback show unhelpful progress bubbles — only the tool name (e.g. ⚙️ fact_store...) with no indication of what action is being performed or what data is involved.

This is because build_tool_preview() in agent/display.py had no handler for these tools, returning None which falls through to a generic tool-name-only display.

Solution

Add action-based preview generation for both tools in build_tool_preview():

fact_store — 6 actions:

Action Preview format Example
add + "content..." + "user prefers dark mode"
search search: "query..." search: "deploy process"
probe probe: entity probe: alice
reason reason: e1, e2, e3 reason: alice, bob
update update: #id update: #42
remove remove: #id remove: #7

fact_feedback — shows action + fact ID:

  • helpful: #136

Long content is truncated at 25-30 chars with ... suffix, matching the existing memory tool pattern.

Testing

  • Added 12 new unit tests covering all fact_store actions + fact_feedback + truncation
  • All 40 tests in test_display.py pass
  • No security impact (pure display logic)

Fixes #28598

…dback

Previously, Feishu tool_progress bubbles showed only the tool name
(e.g. '⚙️ fact_store...') for fact_store and fact_feedback calls,
because build_tool_preview() had no handler for these tools.

Add action-based preview generation:
- fact_store: add (+content), search (query), probe (entity),
  reason (entities), update/remove (#id), list
- fact_feedback: action + #fact_id

Fixes NousResearch#28598
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/agent Core agent loop, run_agent.py, prompt builder platform/feishu Feishu / Lark adapter labels May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent loop, run_agent.py, prompt builder P3 Low — cosmetic, nice to have platform/feishu Feishu / Lark adapter type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feishu gateway: tool progress bubbles truncate short outputs to tool name only

2 participants