Skip to content

fix: 配置文件修改及文档站同步修改#421

Merged
Nomikfk1215 merged 5 commits into1024XEngineer:mainfrom
Nomikfk1215:merge
May 9, 2026
Merged

fix: 配置文件修改及文档站同步修改#421
Nomikfk1215 merged 5 commits into1024XEngineer:mainfrom
Nomikfk1215:merge

Conversation

@Nomikfk1215
Copy link
Copy Markdown
Collaborator

@Nomikfk1215 Nomikfk1215 commented May 9, 2026

1. 配置文件模板调整 (config.example.json)

  • 新增默认 Provider 设置:现在配置中明确指定了默认使用的 AI 提供商和默认模型,用户不需要每次手动选择。
  • 新增健康检查机制:Provider 现在有了故障检测和自动恢复能力——当某个 AI 服务出问题时,系统能自动感知并切换到备用的,等服务恢复后再切回来。
  • 移除了 Token 用量统计配置:之前配置文件里有一整块关于 token
    使用量监控、存储、告警的配置项被移除了。这意味着要么这个功能被砍掉,要么改成了自动管理不再需要用户配置。
  • 对应文档站调整,说明当前多provider和多模型如何配置

2. 新增用户故事文档 (docs/user-stories.md)

这是一份全新的用户指南,用四个完整的使用场景描述了 ByteMind 的全部功能:

  • 设计阶段:如何安装上手、探索代码库、用 Plan 模式做技术方案
  • 开发阶段:切换 Build 模式全自动写代码、审批与沙箱安全、Provider 故障切换、子智能体并行
  • 调试阶段:定位线上问题、激活 Bug 调查技能、修复与验证
  • 代码审查:Review PR、MCP 集成、生成结构化审查报告

每个故事结尾有一个功能覆盖表,列出了该场景涉及的功能模块。

@codecov
Copy link
Copy Markdown

codecov Bot commented May 9, 2026

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
tui/input_paste.go 66.66% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown

@fennoai fennoai Bot left a comment

Choose a reason for hiding this comment

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

I found a few user-facing documentation mismatches between this PR and the current product behavior. I did not find any noteworthy code-quality, performance, or security issues in the tui/input_paste.go fix itself.

Comment thread docs/user-stories.md
"api_key": "sk-xxx"
},
"provider_runtime": {
"providers": [
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Medium: this example models provider_runtime.providers as an array of {id, ...} objects, but config loading expects a JSON object keyed by provider ID (map[string]ProviderConfig). A user who copies this block will fail config parsing/validation before they ever reach model switching.

Comment thread docs/user-stories.md

### 3. Plan 模式:从探索到方案

小张输入 `/plan` 进入 Plan 模式,描述需求:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Medium: this story is written as current TUI behavior, but the current TUI command surface does not match it. Here it uses /plan, and elsewhere in the same file it uses /sessions and /resume in TUI flows, even though the TUI exposes /session and keeps /resume CLI-only. Readers following this walkthrough will hit unknown-command errors.

Comment thread docs/user-stories.md
{
"approval_policy": "on-request",
"sandbox_enabled": true,
"system_sandbox_mode": "non-blocking",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Medium: this sandbox example will not validate as written. system_sandbox_mode only accepts off, best_effort, or required, and network_allowlist entries require an integer port plus a scheme. Copy-pasting this block would break the example before the sandbox behavior described below can be reproduced.

Comment thread www/configuration.md

| Command | What it does |
| ------- | ------------ |
| `/model` | Open interactive picker to browse all configured providers and models |
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Medium: the command forms documented here do not match the current parser. /model <provider>/<model> is explicitly rejected today, and /models opens the picker rather than printing a status list. The same wording appears in the mirrored provider/setup and config-reference pages, so those copies need the same correction too.

Nomikfk1215 and others added 3 commits May 10, 2026 01:32
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add tests for previously uncovered functions: resetPasteBurstTracking,
captureImplicitPasteCandidate, captureImplicitPasteSpecialKey,
isSplitPasteContinuation, looksLikePastedFragment, countCompressedMarkers,
dropLatestCompressedMarker, and related helper functions.

Improves overall tui package coverage from 78.7% to 79.1%.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Nomikfk1215 Nomikfk1215 merged commit c333db7 into 1024XEngineer:main May 9, 2026
5 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.

1 participant