Repository navigation
feat(run): 多个运行并行、运行中显示静态图标、控制台网址可点击 - #2119
Merged
Merged
Conversation
- 运行按键放进 buildState.running(config:/target:/entry:),不同配置并行; 同一配置再次运行先停旧进程,结束后再启动新进程(startRun)。 构建任务仍独占 buildState.operation。 - 执行有自己的状态行;判断执行是否还在一律用 owns,停止指定执行用 stopOperation。 - Run 标签准备阶段转圈,进程启动后显示静态绿色运行图标(#2071)。 - 控制台里的 http/https 网址可点击,在浏览器打开(#1822),由 Core 识别; Core 固定到 10da502(Lithe-core-rust#84)。 - 测试、功能矩阵、Agent Note、无头截图。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1lck
marked this pull request as ready for review
November 18, 2026 02:02
# Conflicts: # scripts/desktop/build-desktop-core.sh
- runConfiguration 合并双方:同键先停后启,启动成功后显示它的控制台。 - startProcessRun 改用 beginRunOperation;表单的运行按钮、新建后自动运行不再等待其他执行。 - latest() 优先返回最新开始且仍在运行的执行,有任务在跑时启动的运行也会被显示。 - Core 固定到 main 的 7381e79(包含 #84)。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 18, 2026
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
outputLinkMatchers提供)10da502)PR 类型 / Type
改动说明 / What changes
背景 / Why
工作台只有一个执行位
buildState.operation,构建任务和应用运行共用。启动一个 Spring Boot 服务后,其他运行配置的运行按钮全部禁用,无法像 IDEA 那样同时开着前端、后端和工作进程。常驻服务的 Run 标签只要进程活着就一直转圈,用户看不出服务已经启动。服务打印的访问地址(http://localhost:8080/…)在控制台里也点不开。改动 / Changes
并行运行(
build.go、runconfig.go、title_run.go、build_connection_debug.go)buildState新增running []*buildOperation。应用运行按键存放:运行配置config:<id>、构建目标target:<实例>/<目标>/<运行>、命令入口entry:<实例>/<入口>。构建任务、模型加载、IDE API 的构建配置仍然只占operation。beginRunOperation(p, label, configuration, key, restart)开始一个运行;beginBuildOperation只用于任务。startRun(p, key, start):这个键没有运行时直接启动;有运行时先停止它,把start放进op.then,endBuildOperation在旧运行结束后调用。和 IDEA 一样“停止并重新运行”,两个进程不会同时占用端口。owns(op)(执行是否还属于窗口,替换所有p.build.operation == op)、release、runOf(key)、latest()(任务优先,否则最新的运行)、active()。stopOperation(p, op)停止指定执行;stopBuildOperation(p)只停latest(),给 Build 窗口工具栏用。op.status(setOperationStatus),Run 窗口的执行树显示各自的状态,不再共用p.build.status。stopBuildSessions(关闭项目、插件变化)停止所有执行,并清掉等待重启的then。startRunConfigurationWith对正在运行的配置返回errRunRunning(BUSY),IDE API 的 start 不替调用方决定重启。debugRunConfiguration也走startRun;调试会话结束时只停自己附着的服务。每个项目仍然只有一个调试会话。界面(
runconfig_view.go、runconfig_browser.go、build_tree_view.go、build_menus.go、run_view.go、runs.go、ide_api_dispatch.go)runOf(configurationRunKey(id)));runStopLabel按执行判断“强制停止”。删除不再使用的runningConfiguration()。latest()。showBuildConsole显示latest()。Run 标签上的停止只停这个标签的执行。running字段改为active()。运行状态图标(#2071,
run_view.go、runs.go、build.go)runEntry新增processRunning,attachProcess在进程启动时设置。runStatusMark:准备中(规划、编译、请求构建插件)转圈;进程启动后显示静态的绿色运行三角。插件经lithe/host/run/start发起的运行一开始就是运行状态。控制台网址(#1822,
core/output_links.go、outputlinks.go)http/https网址,返回不带插件的{line, start, length, url}。网址止于空白、引号、尖括号,不含句末标点和未配对的右括号,被插件链接覆盖的部分归插件。OutputLink新增URL,点击时用已有的openURL在系统浏览器打开,失败时提示desktop.editor.linkOpenFailed(只更新了词条说明)。://的行请求 Core,sources发送空数组而不是 null。PINNED_CORE_REVISION升到10da502。文档与测试
feature/2026-11-17-concurrent-run-executions.md;更新bug-fix/2026-11-17-run-process-outlives-preparation-timeout.md里的停止入口。run-concurrent-executions、run-console-web-links。不在本 PR 范围内 / Out of scope
类型专属:feat
多平台对齐
范围检查 / Scope checks
功能矩阵 / Feature matrix
shared/platform-feature-matrix/features/run-concurrent-executions.json和run-console-web-links.json,两端implemented,验证状态保持pending./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh(200 项通过)和verify-platform-feature-matrix-change.sh origin/main HEAD(通过).artifacts/下生成的矩阵视图插件归属 / Plugin ownership
connectionDebugHarness的服务夹具)或不装插件outputLinks.match只追加不带插件的新链接形状,插件声明和返回值都不变UI 验证 / UI evidence
LITHE_VISUAL_OUTPUT_DIR=<dir> scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' ./internal/workbench/ -run 'TestVisualBuildPanels/concurrent-runs' -count=1,提交f1665f7,1440×900;暗色/中文、亮色/英文。新场景concurrent-runs:ShopWorker 还在准备(转圈),ShopApplication 已经运行(静态绿色三角),控制台里的网址带下划线、末尾句号不在链接内。统一日志系统 / Structured logging
operationFailed("output_link_open_url", err))和打开成功的performed("output.link.openURL"),沿用现有的操作日志接口;Core 关闭时取消提供者请求的那一处标了log-exempt: teardown界面文案 / i18n
desktop.editor.linkOpenFailed的说明;已运行node scripts/i18n/generate-i18n.mjsnode scripts/i18n/verify-app-language-localization.mjs和node scripts/i18n/generate-i18n.mjs --check,均通过逻辑归属 / Logic placement
性能与内存 / Performance and memory
://的行请求设置 / Settings
N/A:没有改动设置。
插件契约 / Plugin contract
PINNED_CORE_REVISION已升到10da50295d732dfbccff9fd0d66492f1028052b3发行包与资源 / Bundle and resources
./scripts/desktop/verify/verify-runtime-bundle-immutability.sh,通过无用代码与重构 / Dead code and refactoring
project.runningConfiguration()验证 / Verification
scripts/desktop/desktop-go.sh test ./internal/... -count=1workbench、core等 57 个包通过;localshell的TestClosingAnIntegratedShellRightAfterACommandHangsUpItsJobs失败,是已知的不稳定测试 #2054,与本 PR 无关,单独重跑通过TestRunsOfDifferentKeysRunTogether(新)TestStartRunReplacesTheRunOfItsKeyOnceItEnded(新)TestServiceRunShowsRunningAndRestartsInPlace(新,真实服务进程,合成插件)processRunning;再次运行时旧运行以“已停止”结束,只剩一个运行TestRunOutputWebAddressOpensInTheBrowser(新,不装插件)http://localhost:8080/,不含句号TestBuildTreeRunMarksRunTheirRowsAtOnce、TestRunConfigurationListScopesGroupsPinsAndRuns、TestTitleDebugAttachesTheRegisteredAdapterToAServiceRun、TestServiceRunOutlivesItsPreparationBound、TestProviderRunPreparationShowsItsBuildOutput(按新规则修改)TestVisualBuildPanels/concurrent-runs(vivahead lithevisual)cargo test -p lithe-plugin-output-links、cargo test -p lithe-core output_link、clippy、verify-docs.mjs未能执行的检查和原因: Windows 虚拟机的交互验收在合并后与其余 PR 一起统一做,结果写进最后的汇总;本 PR 的代码是 Viva 共享实现,没有平台分支。
提交前确认 / Final checks
main(1ce4085e7)创建,目标分支maindocs/assets/concurrent-runs/🤖 Generated with Claude Code