Repository navigation
fix(build): 显示无需模型的声明式任务 - #2404
Merged
Merged
Conversation
Mucheen
marked this pull request as ready for review
November 25, 2026 01:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 Issue / Linked issue
PR 类型 / Type
改动说明 / What changes
背景 / Why
打开工作区时,只声明任务的构建系统会尝试加载模型。即使构建程序已安装,构建面板也会报错并且无法列出这些任务。
改动 / Changes
不在本 PR 范围内 / Out of scope
Python 插件的标记、可执行程序候选与真实插件包联验由插件 PR 提交。
类型专属:fix
复现与根因
model的构建插件项目。在应用 0.8.17 的构建面板内可复现模型加载错误,预期直接显示任务。75edb9674引入的模型分发将非command来源交给提供者。检测来源为空时也会进入该分支。desktop/internal/workbench,同一修复覆盖两端。检查项
TestBuildPanelShowsDeclaredTasksWithoutLoadingAModel在修复前找不到声明任务,TestDeclaredBuildTasksDoNotReplaceRunsBeforeTheModelLoads在修复前提前返回空集合,现均通过。.agents/notes/implemented/bug-fix/2026-11-24-build-tasks-without-a-model.md。范围检查 / Scope checks
功能矩阵 / Feature matrix
shared/platform-feature-matrix/features/build-system-plugins.json的通用能力和回归证据,保留完整工作流的待验证状态。插件归属 / Plugin ownership
UI 验证 / UI evidence
26b691995、macOS ARM64、1280 × 840 深色中文无头窗口。两张python-build-*.png覆盖普通 uv 工作区和同时含 Conda、Ruff、uv 的工作区。工作台截图 artifact统一日志系统 / Structured logging
界面文案 / i18n
逻辑归属 / Logic placement
性能与内存 / Performance and memory
设置 / Settings
N/A(沿用现有设置项与来源)。
插件契约 / Plugin contract
N/A(沿用 Core 的检测字段、任务投影及调用计划)。
发行包与资源 / Bundle and resources
N/A(无新增资源和写入路径,发行包只读检查通过)。
无用代码与重构 / Dead code and refactoring
验证 / Verification
./scripts/desktop/desktop-go.sh test ./internal/workbench -count=1 -timeout=2m -run 'Test(BuildPanelShowsDeclaredTasksWithoutLoadingAModel|DeclaredBuildTasksDoNotReplaceRunsBeforeTheModelLoads|PluginSettingsReloadInvalidatesOnlyOwningModelsAndKeepsRunningTask|ProviderRunsListTheLoadedModelsRuns)$'./scripts/platform-feature-matrix/verify-platform-feature-matrix-change.sh upstream/main HEAD、矩阵全量门禁、Agent Note 校验、i18n 两项校验、发行包只读检查、git diff --check./scripts/desktop/desktop-go.sh test -p=1 ./... -count=1 -timeout=9mWindows 与 Linux 原生工作流尚待验证。
复审
build.modelTree与build.taskPlan。宿主测试使用合成插件。26b691995的 macOS 工作台专项竞态、发行包只读、矩阵、i18n、Agent Note 和宿主零依赖检查通过。Draft Linux CI 通过。提交前确认 / Final checks
upstream/main,目标为main。