xiaomakuaiz 165f4d442f fix(desktop): 拖项目时项目名被选中,WebKit 只认带前缀的 user-select
上一条提交把项目行做成可拖动之后,长按项目名会拖出一段文字选区。行上本来
就写着 user-select: none,看起来该拦住——但那条声明在宿主 WebView 里从来
没生效过。

在真 WebKitGTK 2.52.3(Linux 宿主同一个引擎)上跑四组对照,结论是它根本不
认识无前缀的 user-select:

  只写 user-select:none          → computed [-webkit-user-select] = text
  只写 -webkit-user-select:none  → none
  两个都写                        → none
  什么都不写                      → text

第一组和第四组结果完全一致:只写标准属性等于没写,而且无前缀属性的 computed
值是空字符串。所以选区能直接在项目名的 span 上起锚点。mac 侧同理,WKWebView
到 Safari 17.4 才认无前缀写法,支持窗口比 Linux 更窄。

本仓库其实早踩过一次:styles.css 的 .mc-preview-line::before(代码预览行号)
是唯一两个前缀都写的地方——也是唯一一处用户会真去拖选、因而暴露过的地方。
其余十几处内联 userSelect 都在静态文字上,失效了也没人会去拖,一直没人发现。

改了两处有拖拽交互、会真实暴露的:

- 项目行样式补 WebkitUserSelect(React 会序列化成 -webkit-user-select)。
- filesdrawer 的 trackPointer。它注释写着"期间锁定光标与选区",但那行
  document.body.style.userSelect = "none" 在 Linux 上一直是空操作,拖抽屉
  边缘调宽时同样会选中文字。

侧栏另加了一道 body 级选区锁:行上那条只管住项目名自己,拖动时指针要纵向
扫过下方的会话行,而 SessionRow 没设 none,跨元素选区仍连得起来。按下即锁、
松手复原,并在卸载时兜底还原——body 样式是全局副作用,拖到一半热更新若不
还原,整个应用都选不中文字,且现场早已消失、极难回溯。

其余十几处静态元素没动:改了看不出区别,徒增改动面。真要根治该在 styles.css
抽一个带两个前缀的 .noselect 工具类逐处替换,那是另一件事。

验证:新增 SSR 守卫断言项目行两种写法都在;变异测试摘掉前缀后它精确失败、
其余 6 条不动。tsc --noEmit 无输出;vitest 267 passed;探针脚本没入库。

遗留:选区行为终究是 GUI 行为,SSR 守卫只能证明属性写进了 DOM,证明不了
引擎的实际取舍——那部分靠上面那组引擎级对照兜底,以及人工在实机确认。
2026-07-26 14:44:53 +00:00
2026-07-26 11:52:24 +00:00
2026-04-03 18:57:03 +08:00

MonkeyCode

MonkeyCode

Service Images Client Release License: AGPL-3.0

Try Online · Self-Hosted Deployment · Discord · 中文

What Is MonkeyCode?

MonkeyCode is an open-source enterprise-grade AI development platform with built-in development environment management, AI model management, AI task management, and project requirement management. Unlike typical vibe coding tools, MonkeyCode is designed as an AI assistant for professional engineering teams.

  • You can deploy MonkeyCode inside your enterprise network and share it with your R&D team, so developers can start development tasks quickly while engineering leaders manage AI development workflows centrally.
  • You can also use our online environment directly. It includes managed development environments, built-in large language models, and native mobile support, so you can use leading AI agents anywhere.

Screenshots

MonkeyCode AI task workspace
AI Task Workspace
MonkeyCode cloud terminal and task execution
Cloud Terminal and Task Execution
MonkeyCode project collaboration and file management
Project Collaboration and File Management
MonkeyCode mobile task and file management
Mobile Task and File Management

Features

You do not need to assemble tools, set up environments, or jump between workflows. Give MonkeyCode a requirement and it carries the work from development to validation, turning AI coding into a sustainable workflow.

  • Free to start: No client download and no local environment setup. Open the browser, create an account, and start your first AI development task in seconds.
  • Cloud development environments: No dependency on a local development machine. Every task runs behind a real server-side environment, with build, test, and preview workflows completed in the cloud.
  • Broad model support: GLM, Kimi, MiniMax, Qwen, DeepSeek, and other mainstream models are integrated. You can switch by task type or select a model manually.
  • Native mobile support: Deep iOS and Android support keeps PC and mobile data in sync, so agents can continue running tasks while you are away from your desk.
  • Fully open source: The core code is public on GitHub. Anyone can audit, fork, and extend it while keeping control over technical choices and security policies.
  • Private offline deployment: Enterprises and teams with strict data privacy requirements can deploy MonkeyCode inside their own networks and keep data local.

Usage

Online

Open MonkeyCode Online to get started:

https://monkeycode-ai.net/

Self-Hosted Deployment

Recommended configuration:

  • MonkeyCode console: at least 2C / 4 GB / 40 GB
  • Development environment host: at least 8C / 16 GB / 100 GB

Online installation:

bash -c "$(curl -fsSL 'https://monkeycode-ai.com/online/install')"

For more deployment methods, configuration details, and operations guidance, see the deployment documentation.

Comparison

Dimension MonkeyCode Cursor Claude Code Codex
Online usage 🟢 🟢 🟢 🟢
Local IDE 🔴 🟢 🟢 🟢
Local CLI 🔴 🟢 🟢 🟢
Requirement and SPEC management 🟢 🔴 🔴 🔴
Cloud development environment 🟢 🟡 🟡 🟡
Code completion 🔴 🟢 🔴 🔴
Automated PR / MR code review 🟢 🟡 🟡 🟡
Team collaboration 🟢 🔴 🔴 🔴
China model support 🟢 🔴 🔴 🔴
Private deployment 🟢 🔴 🔴 🔴
Open source 🟢 🔴 🔴 🔴

Community and Support

Join the community to discuss MonkeyCode usage, deployment, and development with other developers.


WeChat Group

Feishu Group

DingTalk Group

You can also get support through:

Star History

Star History Chart

License

MonkeyCode is open source under the GNU Affero General Public License v3.0.

S
Description
企业级 AI 编程助手,支持私有化离线部署,兼容第三方及本地化大模型,具备企业级管理面板,具备代码安全功能。
Readme AGPL-3.0
216 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 42.4%
Go 39.9%
Rust 11%
JavaScript 3%
PLpgSQL 1.1%
Other 2.5%