[GH-ISSUE #3113] MCP tools loaded in backend but not injected into Web UI chat session #1247

Closed
opened 2026-11-04 01:49:42 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @laomu853 on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3113

Strata MCP 工具注入问题技术说明

文档版本:2026-10-18(已补充 HTTP 桥验证)
适用环境:Strata 0.1.45 + Qwen3.8-Flash-Next(512k)


1. 问题概述

在 Strata 0.1.45(及此前测试的 0.1.25)中,通过 mcp.json 加载的 MCP 服务器(以官方 @modelcontextprotocol/server-filesystem 为例),无论采用 stdio 还是 HTTP 传输,后端均能成功启动并获取工具列表,但这些工具无法注入到 Web UI 聊天会话的模型工具列表中,导致模型无法调用任何文件相关工具。

同一配置下的其他 MCP 服务器(如 local-memory,HTTP 传输)的工具可以正常注入并被模型调用。


2. 环境信息

项目 值
Strata 版本 0.1.45(引擎通过 BUILD.json 与文件时间戳确认)
模型 Qwen3.8-Flash-Next(--max-context 524288)
启动命令 python serve/server.py --engine strata --config strata-q2_0-512k.json --port 8080 --mcp-config mcp.json
MCP 配置路径 E:\PCCS\MCP\DuckDuckGo\mcp.json
操作系统 Windows
对比参考 local-memory MCP(自定义 HTTP 服务,端口 9100)工具可正常使用

3. 复现步骤

  1. 在 mcp.json 中添加:

    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "F:\\"]
    }
    
  2. 使用上述启动命令启动 Strata。

  3. 观察启动日志,确认出现:

    [strata] MCP server 'filesystem': 14 tools (read_file, read_text_file, read_media_file, read_multiple_files, write_file, edit_file, create_directory, list_directory, ...)
    
  4. 打开 Web UI(http://127.0.0.1:8080/),新建对话。

  5. 要求模型列出当前可用工具,或直接要求调用 list_directory。

    结果:模型报告的工具列表中不包含任何 filesystem 工具。


4. 已观察到的现象

  • 后端加载成功:启动日志明确列出 filesystem 的 14 个工具名称。
  • 模型侧不可见:新建对话后,模型列出的可用工具仅包含:
    • 环境与时间(get_datetime、get_info)
    • 网络搜索与网页抓取
    • 文档查询
    • 本地记忆(add_memory、search_memory、list_memories、delete_memory)
  • HTTP 桥验证失败:使用自定义 Python stdio-to-HTTP 桥(fs_http_bridge.py,监听 http://127.0.0.1:9110/mcp)将官方 filesystem 服务器暴露为 HTTP 后:
    • 桥本身能正常接收 filesystem 服务器的 JSON-RPC 响应。
    • 在 mcp.json 中配置为 "filesystem-http": {"url": "http://127.0.0.1:9110/mcp"} 并重启 Strata。
    • 启动日志显示该服务器未能成功连接或工具未进入会话。
    • 新建对话后,模型可用工具列表中仍然不包含任何文件相关工具。
  • 传输方式无关:stdio 与 HTTP 两种传输方式下,filesystem 工具均无法注入;而 local-memory(HTTP)可正常注入。
  • 版本无关:在 Strata 0.1.25 与 0.1.45 上均复现。
  • 路径范围无关:将允许目录从 F:\ 缩小到 F:\Memories-work 后问题依旧。

5. 已排除因素

因素 排除依据
模型本身能力不足 同一模型可正常调用 local-memory 的 MCP 工具
mcp.json 配置错误 后端成功启动并枚举工具,格式符合官方文档
引擎版本过旧 已确认运行 0.1.45 引擎(BUILD.json + 文件大小/日期)
路径权限或范围问题 缩小允许目录后仍无法注入
传输方式差异 将 filesystem 通过自定义 HTTP 桥暴露后,工具仍无法注入;local-memory(HTTP)正常
浏览器缓存 强制刷新后现象不变

6. 可能原因分析

问题位于 Strata Web UI 聊天 agent 的工具注入环节,而非 MCP 服务器本身、传输方式或模型:

  • 服务端能够启动 MCP 并获取工具列表(stdio 与 HTTP 桥均验证)。

  • 部分 MCP 服务器(HTTP 类型的 local-memory)的工具能被正确传递到会话。

  • filesystem 工具(无论 stdio 还是 HTTP)均未能进入当前会话的工具列表。

    可能涉及:

  • 工具注册时的过滤逻辑(按服务器名称、类型或工具数量)

  • 会话初始化时对 MCP 工具的选择性加载

  • 前端与后端之间工具元数据传递的遗漏

  • 对特定 MCP 服务器实现的兼容性差异

    具体代码位置推测在 serve/server.py 或 serve/mcp.py 中负责将 MCP 工具合并到聊天请求的部分。


7. 当前影响与临时替代方案

影响:

  • 模型无法直接执行文件列举、读取、写入等操作。

  • 依赖文件系统的自动化流程(如记忆落盘校验、SHA1 计算)无法由模型独立完成。

    临时替代:

  • 用户在本地终端执行 dir / Get-ChildItem 等命令,将输出粘贴给模型进行分析。

  • 记忆相关需求继续使用已正常工作的 local-memory MCP。

  • 重要结论通过 local-memory 的 add_memory 记录。


8. 建议后续行动

  1. 反馈上游
    在 Niko1221/Strata Issues 提交问题,建议附上:

    • 本说明中的启动日志片段
    • 模型报告的工具列表(仅含 local-memory 等,不含 filesystem)
    • mcp.json 中 filesystem 与 local-memory 的对比配置(脱敏)
    • 关键结论:无论 stdio 还是 HTTP 传输,filesystem 工具均无法注入;同一会话中 local-memory 可正常使用
  2. 关注更新
    跟踪后续版本是否修复 MCP 工具在 Web UI 聊天中的注入逻辑。

  3. 备选路径(如需紧急文件能力)
    考虑官方 llama-server --agent,但会失去 Strata 对大 MoE 模型的性能优化。

  4. 内部记录
    将本问题状态记入本地记忆,避免后续会话重复排查。当前已停止继续尝试 stdio / HTTP 桥路径。


9. 相关文件与路径

  • 启动脚本:桌面 启动Strata-new.bat
  • 模型配置:C:\Users\liu_d\Desktop\Strata-new\strata-q2_0-512k.json
  • MCP 配置:E:\PCCS\MCP\DuckDuckGo\mcp.json
  • 引擎:C:\Users\liu_d\Desktop\Strata-new\engine\strata.exe
  • 本地记忆服务:桌面 local_memory_mcp.py(端口 9100)

文档结束

Originally created by @laomu853 on GitHub (Oct 19, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3113 # Strata MCP 工具注入问题技术说明 **文档版本**:2026-10-18(已补充 HTTP 桥验证) **适用环境**:Strata 0.1.45 + Qwen3.8-Flash-Next(512k) --- ## 1. 问题概述 在 Strata 0.1.45(及此前测试的 0.1.25)中,通过 `mcp.json` 加载的 MCP 服务器(以官方 `@modelcontextprotocol/server-filesystem` 为例),无论采用 **stdio** 还是 **HTTP** 传输,后端均能成功启动并获取工具列表,但这些工具**无法注入到 Web UI 聊天会话的模型工具列表**中,导致模型无法调用任何文件相关工具。 同一配置下的其他 MCP 服务器(如 local-memory,HTTP 传输)的工具可以正常注入并被模型调用。 --- ## 2. 环境信息 | 项目 | 值 | | ------------ | ------------------------------------------------------------ | | Strata 版本 | 0.1.45(引擎通过 `BUILD.json` 与文件时间戳确认) | | 模型 | Qwen3.8-Flash-Next(`--max-context 524288`) | | 启动命令 | `python serve/server.py --engine strata --config strata-q2_0-512k.json --port 8080 --mcp-config mcp.json` | | MCP 配置路径 | `E:\PCCS\MCP\DuckDuckGo\mcp.json` | | 操作系统 | Windows | | 对比参考 | local-memory MCP(自定义 HTTP 服务,端口 9100)工具可正常使用 | --- ## 3. 复现步骤 1. 在 `mcp.json` 中添加: ```json "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "F:\\"] } ``` 2. 使用上述启动命令启动 Strata。 3. 观察启动日志,确认出现: ``` [strata] MCP server 'filesystem': 14 tools (read_file, read_text_file, read_media_file, read_multiple_files, write_file, edit_file, create_directory, list_directory, ...) ``` 4. 打开 Web UI(`http://127.0.0.1:8080/`),新建对话。 5. 要求模型列出当前可用工具,或直接要求调用 `list_directory`。 **结果**:模型报告的工具列表中不包含任何 filesystem 工具。 --- ## 4. 已观察到的现象 - **后端加载成功**:启动日志明确列出 filesystem 的 14 个工具名称。 - **模型侧不可见**:新建对话后,模型列出的可用工具仅包含: - 环境与时间(`get_datetime`、`get_info`) - 网络搜索与网页抓取 - 文档查询 - 本地记忆(`add_memory`、`search_memory`、`list_memories`、`delete_memory`) - **HTTP 桥验证失败**:使用自定义 Python stdio-to-HTTP 桥(`fs_http_bridge.py`,监听 `http://127.0.0.1:9110/mcp`)将官方 filesystem 服务器暴露为 HTTP 后: - 桥本身能正常接收 filesystem 服务器的 JSON-RPC 响应。 - 在 `mcp.json` 中配置为 `"filesystem-http": {"url": "http://127.0.0.1:9110/mcp"}` 并重启 Strata。 - 启动日志显示该服务器未能成功连接或工具未进入会话。 - 新建对话后,模型可用工具列表中**仍然不包含**任何文件相关工具。 - **传输方式无关**:stdio 与 HTTP 两种传输方式下,filesystem 工具均无法注入;而 local-memory(HTTP)可正常注入。 - **版本无关**:在 Strata 0.1.25 与 0.1.45 上均复现。 - **路径范围无关**:将允许目录从 `F:\` 缩小到 `F:\Memories-work` 后问题依旧。 --- ## 5. 已排除因素 | 因素 | 排除依据 | | ------------------ | ------------------------------------------------------------ | | 模型本身能力不足 | 同一模型可正常调用 local-memory 的 MCP 工具 | | mcp.json 配置错误 | 后端成功启动并枚举工具,格式符合官方文档 | | 引擎版本过旧 | 已确认运行 0.1.45 引擎(`BUILD.json` + 文件大小/日期) | | 路径权限或范围问题 | 缩小允许目录后仍无法注入 | | 传输方式差异 | 将 filesystem 通过自定义 HTTP 桥暴露后,工具仍无法注入;local-memory(HTTP)正常 | | 浏览器缓存 | 强制刷新后现象不变 | --- ## 6. 可能原因分析 问题位于 **Strata Web UI 聊天 agent 的工具注入环节**,而非 MCP 服务器本身、传输方式或模型: - 服务端能够启动 MCP 并获取工具列表(stdio 与 HTTP 桥均验证)。 - 部分 MCP 服务器(HTTP 类型的 local-memory)的工具能被正确传递到会话。 - filesystem 工具(无论 stdio 还是 HTTP)均未能进入当前会话的工具列表。 可能涉及: - 工具注册时的过滤逻辑(按服务器名称、类型或工具数量) - 会话初始化时对 MCP 工具的选择性加载 - 前端与后端之间工具元数据传递的遗漏 - 对特定 MCP 服务器实现的兼容性差异 具体代码位置推测在 `serve/server.py` 或 `serve/mcp.py` 中负责将 MCP 工具合并到聊天请求的部分。 --- ## 7. 当前影响与临时替代方案 **影响**: - 模型无法直接执行文件列举、读取、写入等操作。 - 依赖文件系统的自动化流程(如记忆落盘校验、SHA1 计算)无法由模型独立完成。 **临时替代**: - 用户在本地终端执行 `dir` / `Get-ChildItem` 等命令,将输出粘贴给模型进行分析。 - 记忆相关需求继续使用已正常工作的 local-memory MCP。 - 重要结论通过 local-memory 的 `add_memory` 记录。 --- ## 8. 建议后续行动 1. **反馈上游** 在 [Niko1221/Strata Issues](https://github.com/Niko1221/Strata/issues) 提交问题,建议附上: - 本说明中的启动日志片段 - 模型报告的工具列表(仅含 local-memory 等,不含 filesystem) - `mcp.json` 中 filesystem 与 local-memory 的对比配置(脱敏) - 关键结论:**无论 stdio 还是 HTTP 传输,filesystem 工具均无法注入;同一会话中 local-memory 可正常使用** 2. **关注更新** 跟踪后续版本是否修复 MCP 工具在 Web UI 聊天中的注入逻辑。 3. **备选路径**(如需紧急文件能力) 考虑官方 `llama-server --agent`,但会失去 Strata 对大 MoE 模型的性能优化。 4. **内部记录** 将本问题状态记入本地记忆,避免后续会话重复排查。当前已停止继续尝试 stdio / HTTP 桥路径。 --- ## 9. 相关文件与路径 - 启动脚本:桌面 `启动Strata-new.bat` - 模型配置:`C:\Users\liu_d\Desktop\Strata-new\strata-q2_0-512k.json` - MCP 配置:`E:\PCCS\MCP\DuckDuckGo\mcp.json` - 引擎:`C:\Users\liu_d\Desktop\Strata-new\engine\strata.exe` - 本地记忆服务:桌面 `local_memory_mcp.py`(端口 9100) --- *文档结束*
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6271485163 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Author
Owner
<!-- gh-comment-id:6304619193 --> @laomu853 commented on GitHub (Oct 21, 2026): Niko ***@***.***> 于2026年10月19日周一 09:00写道: > Closed #3113 <https://github.com/Niko1221/Strata/issues/3113> as not > planned. > > — > Reply to this email directly, view it on GitHub > <https://github.com/Niko1221/Strata/issues/3113?email_source=notifications&email_token=APRA4Z7UIV7HTRXWY2LFRB35UY3ARA5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTGMZWGYYTKMRUGAZTLJTSMVQXG33OUZQXK5DIN5ZKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#event-33661524035>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/APRA4Z7N4QFNSXMWII7NNUT5UY3ARAVCNFSNUABGKJSXA33TNF2G64TZHMYTGOBVHE2DMMZQGE5US43TOVSTWNJZGE3DAMJVGI3DDILWAI> > . > Triage notifications, keep track of coding agent tasks and review pull > requests on the go with GitHub Mobile for iOS > <https://github.com/notifications/mobile/ios/APRA4Z5XOUHXMSLP6S56YC35UY3ARA5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTGMZWGYYTKMRUGAZTLJTSMVQXG33OUZQXK5DIN5ZKKZLWMVXHJKTGN5XXIZLSL5UW64Y> > and Android > <https://github.com/notifications/mobile/android/APRA4ZYK2EEDMS2ESXRDSBD5UY3ARA5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTGMZWGYYTKMRUGAZTLJTSMVQXG33OUZQXK5DIN5ZKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI>. > Download it today! > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@laomu853 commented on GitHub (Oct 21, 2026):

Strata 0.2.0-beta 问题反馈(每条单独提交为一个 issue)

公共环境段(每个 issue 的 Environment 都可以用这段):

Strata version: 0.2.0-beta (Strata-0.2.0-beta-windows-cuda13.exe,
NSIS/Tauri installer; payload extracted with 7-Zip and run portable)
OS: Windows 11 Pro 10.0.26300 x64, Simplified Chinese locale (non-UTF-8
console code page)
GPU: NVIDIA GeForce RTX 4080 SUPER, 16 GB VRAM, driver 610.88 (CUDA 13.3)
CPU: AMD Ryzen 9 7950X3D (16 cores / 32 threads)
RAM: 127 GB
Model: Qwen3.6-35B-A3B Q8_0 + mmproj-F16 (downloaded by the app)
Disk: app and data on F: (exFAT); user profile on C: (NTFS)

B1. `[GUI] App exits silently on launch when the Documents folder path

contains non-ASCII characters`

Problem: After installing, clicking Strata does nothing; no window appears.
Environment: <common environment>. Documents folder is
C:\Users\<user>\OneDrive\文档.
Reproduce: Install 0.2.0-beta on a Chinese-locale Windows whose Documents
path contains Chinese characters, then launch strata-desktop.exe.
Expected: The app opens, or shows an error dialog explaining why it can't
start.
Actual: The App Host exits and the desktop process crashes before showing a
window. The Windows Application log has repeated strata-desktop.exe crashes
with 0xc0000409. Running the extracted exe from a console shows:
  Error: ENOENT: no such file or directory, mkdir
'C:\Users\<user>\OneDrive\??\Strata\Models'
      at initialModelsDirectory (.../host/server/store.mjs:68)
  [strata] the Strata App Host stopped before it became healthy: exit
status exit code: 1
  thread 'main' panicked ... Failed to setup app: ... the Strata App Host
stopped before it became healthy
The Chinese folder name "文档" becomes "??". The Documents path appears to be
read from PowerShell output (which uses the console code page) and decoded
as UTF-8.
Evidence: log excerpt above; Windows event log entries for
strata-desktop.exe, 0xc0000409.
Reproduction status: reproduced locally. Workaround confirmed: setting the
models/documents directory through environment variables in a launcher
script avoids the crash.
Suggested fix: get the Documents folder via
SHGetKnownFolderPath(FOLDERID_Documents) (or force UTF-8 output if
PowerShell must be used), and show an error dialog when the App Host fails
instead of exiting silently.

B2. `[GUI] Image attachments and agent file writes fail on drives

without hard-link support (exFAT)`

Problem: With the data folder on an exFAT drive, (a) sending a chat message
with an image fails, and (b) the agent's file-write tool fails for every
new file.
Environment: <common environment>. Data folder on F: (exFAT).
Reproduce:
  (a) Load a vision model, attach any image (tested JPG/PNG, ASCII and
Chinese filenames), send.
  (b) Ask the agent to create any new file in its workspace (e.g.
generate_pdf.py).
Expected: The image is attached / the file is written.
Actual:
  (a) UI: "The coding assistant did not take this message. Send it again in
a moment."
      Detail: "The agent did not accept the message: session/prompt: Unable
to persist attachment."
  (b) Error: cannot write "...\Workspace\generate_pdf.py": EISDIR: illegal
operation on a directory, link
'...\Workspace\.generate_pdf.py.<pid>.<uuid>.tmpdir\generate_pdf.py.tmp' ->
'...\Workspace\generate_pdf.py'
Cause: @deepseek-ai/dsh-attachment-local and @deepseek-ai/dsh-fs-local use
fs.link() for atomic/no-overwrite writes; exFAT doesn't support hard links
(a manual fs.link test on F: fails with EISDIR as well).
Evidence: error texts above; attachments/v1/objects contains only empty
sub-folders.
Reproduction status: reproduced locally. A local patch that falls back to
"check target doesn't exist, then rename" when link() fails with
EISDIR/EPERM/EXDEV/ENOTSUP/EINVAL/ENOSYS fixes both (tested: new file,
overwrite, Chinese filenames, concurrent-create still rejected, 3 image
sends).
Suggested fix: add a non-hard-link fallback in both modules, and include
exFAT/FAT32 in testing.

B3. `[GUI] Qwen3.6-35B-A3B Q8_0 defaults to 512K context and fails to

load on 16 GB; UI offers sizes that cannot load`

Problem: After the download finishes, loading Qwen3.6-35B-A3B Q8_0 fails
because the default context is 524288 tokens. The context picker offers
8K–512K without any VRAM check.
Environment: <common environment>.
Reproduce: Download Qwen3.6-35B-A3B Q8_0, click load with default settings;
or pick 128K / 256K / 512K.
Expected: A default context that fits the detected VRAM, and only
selectable sizes that can load (or a clear warning).
Actual: Engine log:
  context 524288 cells ... 0.00 GiB of VRAM free
  not enough VRAM left ... (1760 MiB needed, 0 MiB free) ... use a shorter
--max-context
128K, 256K and 512K all fail the same way (128K is short by about 190 MB).
64K loads fine (about 4.97 GiB VRAM left, 44 tok/s output).
Evidence: engine log excerpts above.
Reproduction status: reproduced locally.

B4. `[GUI] Model check reports "some model files are missing" because

the --mtp value is treated as a path`

Problem: After a complete download, the model page shows "部分模型文件缺失。请使用“下载 /
修复”恢复。" (some model files are missing; use Download / Repair). Repairing
doesn't help.
Environment: <common environment>. Model Qwen3.6-35B-A3B Q8_0.
Reproduce: Download Qwen3.6-35B-A3B Q8_0 (install log ends with "All set.",
exit code 0; both .gguf files have .done markers), then open the model page.
Expected: Model is reported ready.
Actual: The doctor check returns:
  "name": "mtp", "status": "missing", "path": "<app>\\control\\2"
  "issues": [{"code": "COMPONENT_MISSING", "component": "mtp"}]
The model's launch args contain "--mtp 2"; strata_control/doctor.py checks
the numeric value "2" as a component path.
Evidence: doctor output above.
Reproduction status: reproduced locally. Creating an empty folder at
<app>\control\2 makes the check pass and the model loads, which confirms
the cause.
Suggested fix: only run file-existence checks on path-type arguments.

B5. `[GUI] Python run by the agent cannot print Chinese

(UnicodeEncodeError, cp1252)`

Problem: Python scripts run by the agent fail when printing non-ASCII text.
Environment: <common environment>. System Python 3.11.
Reproduce: Ask the agent to run: python -c "print('中文')"
Expected: 中文 is printed.
Actual: UnicodeEncodeError: 'charmap' codec can't encode characters ...
(cp1252)
Cause: the environment allow-list in host/server/agent/harness-runtime.mjs
drops PYTHON* variables, so PYTHONUTF8 / PYTHONIOENCODING set by the user
never reach the child process.
Reproduction status: reproduced locally. Allowing PYTHONUTF8 and
PYTHONIOENCODING through, with PYTHONUTF8=1 and PYTHONIOENCODING=utf-8,
fixes it.

B6. `[GUI] Several smaller 0.2.0-beta issues found while testing on

Windows`

(以下几条较小,按 CONTRIBUTING.md 的要求合并成一个 issue;每条都注明了复现状态)

Environment: <common environment>.

1. "Reserve 20%" uses more CPU threads than physical cores — reproduced
locally.
   With 16 cores / 32 threads it starts the engine with 25 threads; the
engine warns that this exceeds the 16 physical cores. Using physical cores
(12 threads) removes the warning with the same speed (25–30 tok/s).
   Also, the Qwen3.6 engine logs "ignoring --vram-reserve-mib", so in this
mode the VRAM reserve has no effect.

2. About 9 s before the first token on every turn — reproduced locally.
   About 11K tokens of system prompt are reprocessed each turn (engine
stats show reused=0, even for identical requests). The Qwen3.6 engine
rejects --prompt-cache-every / --prompt-cache-tail ("not an option of this
engine"). Sub-agents are slow because of this (two small tasks took about 4
minutes).

3. Stale error on the model page — reproduced locally.
   The page keeps showing the last failed operation's error ("some model
files are missing") after the model has loaded and shows "Ready". It clears
only after leaving the page or restarting.

4. Branch title duplication — reproduced locally.
   Branching a branch gives the title "<name> (branch) (branch)".

5. Data-folder naming rule only shown as a download-time error — reproduced
locally.
   A custom data folder must be named Strata... (check_data_dir), but this
is only shown as "Data_dir '...\models': a new data folder must be named
Strata..." when downloading, not when choosing the folder.

6. Chat scrolling jitters, also after generation finishes — observed by the
user; cause is unconfirmed static analysis.
   Suspected path: .st-msg uses content-visibility:auto with
contain-intrinsic-size:auto 120px, so off-screen messages change height
when scrolled into view, and the 400 px "stick to bottom" threshold pulls
the view back down when height changes. A local patch (real heights, 48 px
threshold) is applied; the user is still evaluating it.

mu lao @.***> 于2026年10月20日周二 17:05写道:

Niko @.***> 于2026年10月19日周一 09:00写道:

Closed #3113 https://github.com/Niko1221/Strata/issues/3113 as not
planned.

—
Reply to this email directly, view it on GitHub
https://github.com/Niko1221/Strata/issues/3113?email_source=notifications&email_token=APRA4Z7UIV7HTRXWY2LFRB35UY3ARA5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTGMZWGYYTKMRUGAZTLJTSMVQXG33OUZQXK5DIN5ZKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#event-33661524035,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APRA4Z7N4QFNSXMWII7NNUT5UY3ARAVCNFSNUABGKJSXA33TNF2G64TZHMYTGOBVHE2DMMZQGE5US43TOVSTWNJZGE3DAMJVGI3DDILWAI
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
https://github.com/notifications/mobile/ios/APRA4Z5XOUHXMSLP6S56YC35UY3ARA5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTGMZWGYYTKMRUGAZTLJTSMVQXG33OUZQXK5DIN5ZKKZLWMVXHJKTGN5XXIZLSL5UW64Y
and Android
https://github.com/notifications/mobile/android/APRA4ZYK2EEDMS2ESXRDSBD5UY3ARA5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTGMZWGYYTKMRUGAZTLJTSMVQXG33OUZQXK5DIN5ZKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI.
Download it today!
You are receiving this because you authored the thread.Message ID:
@.***>

<!-- gh-comment-id:6304713834 --> @laomu853 commented on GitHub (Oct 21, 2026): # Strata 0.2.0-beta 问题反馈(每条单独提交为一个 issue) 公共环境段(每个 issue 的 Environment 都可以用这段): ```text Strata version: 0.2.0-beta (Strata-0.2.0-beta-windows-cuda13.exe, NSIS/Tauri installer; payload extracted with 7-Zip and run portable) OS: Windows 11 Pro 10.0.26300 x64, Simplified Chinese locale (non-UTF-8 console code page) GPU: NVIDIA GeForce RTX 4080 SUPER, 16 GB VRAM, driver 610.88 (CUDA 13.3) CPU: AMD Ryzen 9 7950X3D (16 cores / 32 threads) RAM: 127 GB Model: Qwen3.6-35B-A3B Q8_0 + mmproj-F16 (downloaded by the app) Disk: app and data on F: (exFAT); user profile on C: (NTFS) ``` --- ## B1. `[GUI] App exits silently on launch when the Documents folder path contains non-ASCII characters` ```text Problem: After installing, clicking Strata does nothing; no window appears. Environment: <common environment>. Documents folder is C:\Users\<user>\OneDrive\文档. Reproduce: Install 0.2.0-beta on a Chinese-locale Windows whose Documents path contains Chinese characters, then launch strata-desktop.exe. Expected: The app opens, or shows an error dialog explaining why it can't start. Actual: The App Host exits and the desktop process crashes before showing a window. The Windows Application log has repeated strata-desktop.exe crashes with 0xc0000409. Running the extracted exe from a console shows: Error: ENOENT: no such file or directory, mkdir 'C:\Users\<user>\OneDrive\??\Strata\Models' at initialModelsDirectory (.../host/server/store.mjs:68) [strata] the Strata App Host stopped before it became healthy: exit status exit code: 1 thread 'main' panicked ... Failed to setup app: ... the Strata App Host stopped before it became healthy The Chinese folder name "文档" becomes "??". The Documents path appears to be read from PowerShell output (which uses the console code page) and decoded as UTF-8. Evidence: log excerpt above; Windows event log entries for strata-desktop.exe, 0xc0000409. Reproduction status: reproduced locally. Workaround confirmed: setting the models/documents directory through environment variables in a launcher script avoids the crash. Suggested fix: get the Documents folder via SHGetKnownFolderPath(FOLDERID_Documents) (or force UTF-8 output if PowerShell must be used), and show an error dialog when the App Host fails instead of exiting silently. ``` ## B2. `[GUI] Image attachments and agent file writes fail on drives without hard-link support (exFAT)` ```text Problem: With the data folder on an exFAT drive, (a) sending a chat message with an image fails, and (b) the agent's file-write tool fails for every new file. Environment: <common environment>. Data folder on F: (exFAT). Reproduce: (a) Load a vision model, attach any image (tested JPG/PNG, ASCII and Chinese filenames), send. (b) Ask the agent to create any new file in its workspace (e.g. generate_pdf.py). Expected: The image is attached / the file is written. Actual: (a) UI: "The coding assistant did not take this message. Send it again in a moment." Detail: "The agent did not accept the message: session/prompt: Unable to persist attachment." (b) Error: cannot write "...\Workspace\generate_pdf.py": EISDIR: illegal operation on a directory, link '...\Workspace\.generate_pdf.py.<pid>.<uuid>.tmpdir\generate_pdf.py.tmp' -> '...\Workspace\generate_pdf.py' Cause: @deepseek-ai/dsh-attachment-local and @deepseek-ai/dsh-fs-local use fs.link() for atomic/no-overwrite writes; exFAT doesn't support hard links (a manual fs.link test on F: fails with EISDIR as well). Evidence: error texts above; attachments/v1/objects contains only empty sub-folders. Reproduction status: reproduced locally. A local patch that falls back to "check target doesn't exist, then rename" when link() fails with EISDIR/EPERM/EXDEV/ENOTSUP/EINVAL/ENOSYS fixes both (tested: new file, overwrite, Chinese filenames, concurrent-create still rejected, 3 image sends). Suggested fix: add a non-hard-link fallback in both modules, and include exFAT/FAT32 in testing. ``` ## B3. `[GUI] Qwen3.6-35B-A3B Q8_0 defaults to 512K context and fails to load on 16 GB; UI offers sizes that cannot load` ```text Problem: After the download finishes, loading Qwen3.6-35B-A3B Q8_0 fails because the default context is 524288 tokens. The context picker offers 8K–512K without any VRAM check. Environment: <common environment>. Reproduce: Download Qwen3.6-35B-A3B Q8_0, click load with default settings; or pick 128K / 256K / 512K. Expected: A default context that fits the detected VRAM, and only selectable sizes that can load (or a clear warning). Actual: Engine log: context 524288 cells ... 0.00 GiB of VRAM free not enough VRAM left ... (1760 MiB needed, 0 MiB free) ... use a shorter --max-context 128K, 256K and 512K all fail the same way (128K is short by about 190 MB). 64K loads fine (about 4.97 GiB VRAM left, 44 tok/s output). Evidence: engine log excerpts above. Reproduction status: reproduced locally. ``` ## B4. `[GUI] Model check reports "some model files are missing" because the --mtp value is treated as a path` ```text Problem: After a complete download, the model page shows "部分模型文件缺失。请使用“下载 / 修复”恢复。" (some model files are missing; use Download / Repair). Repairing doesn't help. Environment: <common environment>. Model Qwen3.6-35B-A3B Q8_0. Reproduce: Download Qwen3.6-35B-A3B Q8_0 (install log ends with "All set.", exit code 0; both .gguf files have .done markers), then open the model page. Expected: Model is reported ready. Actual: The doctor check returns: "name": "mtp", "status": "missing", "path": "<app>\\control\\2" "issues": [{"code": "COMPONENT_MISSING", "component": "mtp"}] The model's launch args contain "--mtp 2"; strata_control/doctor.py checks the numeric value "2" as a component path. Evidence: doctor output above. Reproduction status: reproduced locally. Creating an empty folder at <app>\control\2 makes the check pass and the model loads, which confirms the cause. Suggested fix: only run file-existence checks on path-type arguments. ``` ## B5. `[GUI] Python run by the agent cannot print Chinese (UnicodeEncodeError, cp1252)` ```text Problem: Python scripts run by the agent fail when printing non-ASCII text. Environment: <common environment>. System Python 3.11. Reproduce: Ask the agent to run: python -c "print('中文')" Expected: 中文 is printed. Actual: UnicodeEncodeError: 'charmap' codec can't encode characters ... (cp1252) Cause: the environment allow-list in host/server/agent/harness-runtime.mjs drops PYTHON* variables, so PYTHONUTF8 / PYTHONIOENCODING set by the user never reach the child process. Reproduction status: reproduced locally. Allowing PYTHONUTF8 and PYTHONIOENCODING through, with PYTHONUTF8=1 and PYTHONIOENCODING=utf-8, fixes it. ``` ## B6. `[GUI] Several smaller 0.2.0-beta issues found while testing on Windows` (以下几条较小,按 CONTRIBUTING.md 的要求合并成一个 issue;每条都注明了复现状态) ```text Environment: <common environment>. 1. "Reserve 20%" uses more CPU threads than physical cores — reproduced locally. With 16 cores / 32 threads it starts the engine with 25 threads; the engine warns that this exceeds the 16 physical cores. Using physical cores (12 threads) removes the warning with the same speed (25–30 tok/s). Also, the Qwen3.6 engine logs "ignoring --vram-reserve-mib", so in this mode the VRAM reserve has no effect. 2. About 9 s before the first token on every turn — reproduced locally. About 11K tokens of system prompt are reprocessed each turn (engine stats show reused=0, even for identical requests). The Qwen3.6 engine rejects --prompt-cache-every / --prompt-cache-tail ("not an option of this engine"). Sub-agents are slow because of this (two small tasks took about 4 minutes). 3. Stale error on the model page — reproduced locally. The page keeps showing the last failed operation's error ("some model files are missing") after the model has loaded and shows "Ready". It clears only after leaving the page or restarting. 4. Branch title duplication — reproduced locally. Branching a branch gives the title "<name> (branch) (branch)". 5. Data-folder naming rule only shown as a download-time error — reproduced locally. A custom data folder must be named Strata... (check_data_dir), but this is only shown as "Data_dir '...\models': a new data folder must be named Strata..." when downloading, not when choosing the folder. 6. Chat scrolling jitters, also after generation finishes — observed by the user; cause is unconfirmed static analysis. Suspected path: .st-msg uses content-visibility:auto with contain-intrinsic-size:auto 120px, so off-screen messages change height when scrolled into view, and the 400 px "stick to bottom" threshold pulls the view back down when height changes. A local patch (real heights, 48 px threshold) is applied; the user is still evaluating it. ``` mu lao ***@***.***> 于2026年10月20日周二 17:05写道: > > > Niko ***@***.***> 于2026年10月19日周一 09:00写道: > >> Closed #3113 <https://github.com/Niko1221/Strata/issues/3113> as not >> planned. >> >> — >> Reply to this email directly, view it on GitHub >> <https://github.com/Niko1221/Strata/issues/3113?email_source=notifications&email_token=APRA4Z7UIV7HTRXWY2LFRB35UY3ARA5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTGMZWGYYTKMRUGAZTLJTSMVQXG33OUZQXK5DIN5ZKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#event-33661524035>, >> or unsubscribe >> <https://github.com/notifications/unsubscribe-auth/APRA4Z7N4QFNSXMWII7NNUT5UY3ARAVCNFSNUABGKJSXA33TNF2G64TZHMYTGOBVHE2DMMZQGE5US43TOVSTWNJZGE3DAMJVGI3DDILWAI> >> . >> Triage notifications, keep track of coding agent tasks and review pull >> requests on the go with GitHub Mobile for iOS >> <https://github.com/notifications/mobile/ios/APRA4Z5XOUHXMSLP6S56YC35UY3ARA5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTGMZWGYYTKMRUGAZTLJTSMVQXG33OUZQXK5DIN5ZKKZLWMVXHJKTGN5XXIZLSL5UW64Y> >> and Android >> <https://github.com/notifications/mobile/android/APRA4ZYK2EEDMS2ESXRDSBD5UY3ARA5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTGMZWGYYTKMRUGAZTLJTSMVQXG33OUZQXK5DIN5ZKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI>. >> Download it today! >> You are receiving this because you authored the thread.Message ID: >> ***@***.***> >> >
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1247
No description provided.