Skip to content

v1.4#3

Merged
sunwu51 merged 13 commits intomasterfrom
dev
Apr 30, 2026
Merged

v1.4#3
sunwu51 merged 13 commits intomasterfrom
dev

Conversation

@sunwu51
Copy link
Copy Markdown
Owner

@sunwu51 sunwu51 commented Apr 30, 2026

  • 修复了代码高亮没有颜色问题
  • 增加了代码块的复制按钮,整条消息的复制按钮
  • 增加了模型名称展示和上下文使用量展示
  • 增加了工具透出功能,可以反向透出mcp能力
  • 增加了一个系统提示词,可以对某个会话,单独加特定的系统提示
  • 增加了一组stash函数,用于暂存一些内容到浏览器storage.local中,可以存读删 当做持久的kv存储用
  • 增加了一组save_to_file函数,可以让agent将某些内容保存到文件,并下载下来
  • 修复了deepseek等协议必须回传thinking内容的兼容性问题
  • 修复了新消息输出一直会追最新消息,无法定住看历史消息的问题

sunwu51 and others added 13 commits April 24, 2026 21:37
Add wsBridge module that acts as an MCP server over WebSocket,
allowing external AI agents to call the extension's built-in browser
tools (tab_list, dom_query, tab_extract, etc.) via JSON-RPC 2.0.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- New "工具透出" tab with WS URL config, connect/disconnect button,
  connection status, and tool call history (with timestamps, max 100)
- wsBridge now connects on demand instead of auto-connecting
- Removed WS URL from SettingsDialog
- Sidepanel receives real-time status and tool call notifications
  from service worker via chrome.runtime messages

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- wsBridge: clients auto-register on connect (no config needed),
  idle watchdog detects dead connections in 30s, reconnects
- mcp-center: removed wsBridge from config/UI add-edit-delete,
  added /api/wsbridge/servers, 30s ping keepalive, UI read-only
- McpConfig: auto-disable MCP tools that duplicate built-in tools,
  show "(与内置工具重复)" tag, sort to bottom
- CSS: compact tab buttons to avoid overlap with settings

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Browser WebSocket API does not expose ping/pong frames to JS,
so the 30s idle watchdog was never reset by the server's pings,
causing a disconnect+reconnect every 30s. The server's ping/pong
already handles dead-connection detection at the TCP level.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…y button

- Add stash_in_browser / unstash_in_browser / list_stashes_in_browser / remove_stash_in_browser tools for persistent note storage with expiration
- Add save_to_file tool for downloading string content via browser a-tag download
- Add copy button on assistant message bubbles to copy raw markdown content

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@sunwu51 sunwu51 merged commit e1d6101 into master Apr 30, 2026
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.

1 participant