[Feature] 修正运行输出标签的图标 Part 身份以通过 Viva dev 检查

Open Beginner friendly
#2,565 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
go
Domain
frontend, testing

Research direction

Read desktop/internal/workbench/run_view.go, especially runOutputTab, and inspect TestWorkflowOutputProgressUpdatesAndRelease in the workbench tests. Reproduce the failure with the provided -tags dev command, then trace how the tab's identity context reaches its container, controls, and icon. Done when the test passes with dev property checks enabled and the tab's selection and close behavior remain intact.

Written by the indexing model from the issue text.

Description

refactor review: high
Problem to solve / 要解决的问题

desktop/internal/workbench/run_view.go 的 runOutputTab 把 c.Part("icon") 交给没有身份的 ui.Icon,触发 Viva 开发属性检查:Part "icon" was given to a Icon, which has no identity。#2561 旧 CI 的 Linux/Windows 桌面检查因此失败,且该文件不在高亮优化的改动范围内。

在 PR 前的源码 9905168067539adab2f754dd55b8fe65b0a0523c 上通过 Go overlay 还原所有本 PR 修改后,TestWorkflowOutputProgressUpdatesAndRelease 在 -tags dev 下同样失败,普通构建通过。引入路径来自 #2551(299ad2554);全仓搜索 runOutputTab 确认生产入口位于共享工作台的运行输出标签绘制路径。

Proposed solution / 建议方案

按 Viva 的身份契约调整输出标签的上下文:身份给实际容器和可交互控件,纯图标使用不携带未消费 Part 的上下文。保留标签选中、关闭按钮及其稳定身份,用现有 TestWorkflowOutputProgressUpdatesAndRelease 在 -tags dev 下验收,不关闭属性检查。

Target platform / 目标平台

Cross-platform / 跨平台

Area / 模块

UI / 界面

Priority / 优先级

P1 / 尽快处理:使用体验大幅下降,但通常仍可继续使用

Alternatives considered / 已考虑的替代方案
  • 关闭 dev 属性校验:隐藏宿主不符合框架契约的调用,不采纳。
  • 在 #2561 的高亮修复里混入输出 UI 修改:无共同根因,独立处理。
Additional context / 补充信息

本地核实环境:macOS 27.3 (26C5047e)、Apple M4 arm64,Go 1.27.4,宿主固定 Viva 7378b4e22ca7;源码无头测试,不代表发行包中普通构建发生崩溃。

复现命令(在上述 PR 前的提交上运行):

scripts/desktop/desktop-go.sh test -tags dev ./internal/workbench -run '^TestWorkflowOutputProgressUpdatesAndRelease$' -count=1 -timeout=30s

最小诊断:

--- FAIL: TestWorkflowOutputProgressUpdatesAndRelease
panic: ui: Part "icon" was given to a Icon, which has no identity
workbench.(*App).runOutputTab.func1: run_view.go:207

查重使用 runOutputTab、WorkflowOutputProgress、Part icon、has no identity 与中文输出图标关键词。#2359 已于 2026-11-26 关闭,原位置是设置面包屑和侧栏 Spacer;本次是 #2551 新增的输出图标调用,不是相同未关闭事项。CI 证据:https://github.com/1lck/Lithe-IDEA/actions/runs/46465483321/job/142012884288 。

Checklist / 提交前检查
  • I searched existing issues for duplicates. / 我已搜索现有 Issue,确认没有重复建议。
Dominant language
TypeScript
Stars
1.8k
Forks
151
Avg merge
3h 13m
Merged PRs (30d)
614

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 1lck/Lithe-IDEA

All issues in 1lck/Lithe-IDEA

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.