fix: 修复本地开发构建与会话流式中断#1
Closed
Tanyu-y wants to merge 3 commits into
Closed
Conversation
added 3 commits
July 6, 2026 17:45
主要改动: - 修复 packages 构建顺序,确保 market-data-core 先于 a-stock-layer 构建 - 修复 skills 包在 Windows 下使用 cp 导致构建失败的问题 - 修复 Web 桌面布局下左侧会话栏默认不可见的问题 - 修复 SSE 请求被误判关闭导致回复立即已停止的问题 - 修复 default_model 指向已删除模型提供商时未自动回退的问题 验证: - npm run build -w @opptrix/server - npm run build:packages
主要改动: - 新增 Node 测试 runner,避免依赖 shell glob 展开 - 串行运行测试,避免全局环境变量与 SQLite 资源互相干扰 - 修复 Windows 下 SQLite 临时文件锁导致清理失败的问题 - 避免测试启动 provider 目录 watcher 导致进程挂起 验证: - npm run build - npm run test - npm run test:ci
主要改动: - 统一桌面脚本中的 Node/npm 命令解析 - Windows 下通过 shell 启动 npm,避免 spawn npm ENOENT - 为 dev stack 子进程增加 error 处理 - 使用 process.execPath 启动 Node 脚本,适配 nvm 环境 验证: - node --check apps/desktop/scripts/dev.mjs - node --check apps/desktop/scripts/dev-stack.mjs - node --check apps/desktop/scripts/lib/runtime-target.mjs - node --check apps/desktop/scripts/lib/commands.mjs - node -e 验证 npm --version spawn 成功 - 受控启动 dev-stack,确认 API 与 Vite 均可访问
2 tasks
Owner
|
已择优吸收至 #2,并保留 Co-authored-by 共创署名。 |
Travisun
pushed a commit
that referenced
this pull request
Jul 8, 2026
Absorb cross-platform dev fixes (SSE abort, model fallback, Windows npm spawn, test runner) from PR #1 while skipping conflicting changes. Fix CI hang caused by MarketDataEngine autoDiscover starting provider dir watchers in multi-market tests; run tests per-file with force-exit and timeouts. Co-authored-by: Tanyu-y <11351187+Tanyu-y@users.noreply.github.com> Co-authored-by: Tanyu-y <weihengyi@outlook.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Travisun
pushed a commit
that referenced
this pull request
Jul 8, 2026
Absorb cross-platform dev fixes (SSE abort, model fallback, Windows npm spawn, test runner) from PR #1 while skipping conflicting changes. Fix CI hang caused by MarketDataEngine autoDiscover starting provider dir watchers in multi-market tests; run tests per-file with force-exit and timeouts. Co-authored-by: Tanyu-y <11351187+Tanyu-y@users.noreply.github.com> Co-authored-by: Tanyu-y <weihengyi@outlook.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Travisun
pushed a commit
that referenced
this pull request
Jul 8, 2026
Absorb cross-platform dev fixes (SSE abort, model fallback, Windows npm spawn, test runner) from PR #1 while skipping conflicting changes. Fix CI hang caused by MarketDataEngine autoDiscover starting provider dir watchers in multi-market tests; run tests per-file with force-exit and timeouts. Co-authored-by: Tanyu-y <11351187+Tanyu-y@users.noreply.github.com> Co-authored-by: Tanyu-y <weihengyi@outlook.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Travisun
pushed a commit
that referenced
this pull request
Jul 8, 2026
Absorb cross-platform dev fixes (SSE abort, model fallback, Windows npm spawn, test runner) from PR #1 while skipping conflicting changes. Fix CI hang caused by MarketDataEngine autoDiscover starting provider dir watchers in multi-market tests; run tests per-file with force-exit and timeouts. Co-authored-by: Tanyu-y <11351187+Tanyu-y@users.noreply.github.com> Co-authored-by: Tanyu-y <weihengyi@outlook.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Travisun
pushed a commit
that referenced
this pull request
Jul 8, 2026
Absorb cross-platform dev fixes (SSE abort, model fallback, Windows npm spawn, test runner) from PR #1 while skipping conflicting changes. Fix CI hang caused by MarketDataEngine autoDiscover starting provider dir watchers in multi-market tests; run tests per-file with force-exit and timeouts. Co-authored-by: Tanyu-y <11351187+Tanyu-y@users.noreply.github.com> Co-authored-by: Tanyu-y <weihengyi@outlook.com>
Owner
|
@Tanyu-y 您有Windows真的太好了,我的本地环境目前缺少Windows,因此可能还会出现一些构建或者UI不一致问题。 |
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.
主要改动
npm run test无法执行的问题spawn npm失败导致 Vite 无法启动的问题验证
npm --version可由桌面脚本 helper 正常 spawnapps/desktop/scripts/dev-stack.mjs,确认 API 与 Vite 均可访问说明
.env作为必需开发入口。clean脚本仍使用find/rm,属于既有跨平台遗留,可后续单独处理。