Skip to content

feat: 接入后端同分支后台热更新 - #570

Open
ClozyA wants to merge 1 commit into
devfrom
codex/runtime-013-hot-update-pr
Open

feat: 接入后端同分支后台热更新#570
ClozyA wants to merge 1 commit into
devfrom
codex/runtime-013-hot-update-pr

Conversation

@ClozyA

@ClozyA ClozyA commented Sep 5, 2026

Copy link
Copy Markdown
Member

变更

  • 完整纳入本地 dev 分支的后端同分支后台热更新生产实现
  • 将随应用分发的 AUTO-MAS Runtime 升级到 v0.1.3
  • 移除构建流程中额外的 Runtime 后台更新协议校验步骤
  • 设置页暂时隐藏始终显示 unknown 的后端日期,并保留后端哈希信息
  • res/version.json 记录本次用户可见变更

提交

  • origin/dev 线性重建
  • 不包含热更新相关测试文件
  • 无 merge commit

验证

  • yarn lint --max-warnings 1
  • yarn typecheck
  • yarn build:main
  • git diff --check

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry @ClozyA, your pull request is larger than the review limit of 150,000 diff characters

@ClozyA
ClozyA force-pushed the codex/runtime-013-hot-update-pr branch from 1d60246 to 73ee85b Compare September 5, 2026 17:12

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1d60246364

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread res/version.json
Comment on lines +16 to +17
"后端更新自动在后台下载,准备好后提示下次启动生效,无需中断当前任务",
"Runtime 更新至 v0.1.3,并暂时隐藏设置页中无效的后端日期信息",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Collapse the changelog into one user-facing entry

This PR adds two separate changelog records, and the second exposes implementation details such as the Runtime version. Repository policy requires exactly one concise, user-facing record per PR, so combine these lines into a single description of the observable update behavior.

AGENTS.md reference: AGENTS.md:L31-L32

Useful? React with 👍 / 👎.

Comment on lines +171 to +173
if (!result.success) {
backendLogs.value = result.logs || ''
throw new Error(result.error || t('init.backend.failedTitle'))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Expose Runtime remediation for startup preparation failures

When a staged same-branch update is applied during the next managed startup, backendStart() can now fail with DEPENDENCY_SYNC_FAILED or ENVIRONMENT_BROKEN and return remediation such as rebuild-environment. This panel discards those structured fields and retains only the message and logs, while its Retry button merely invokes backendStart() again; because an already-initialized installation re-enters directly at the backend step, the existing dependency repair actions are never reachable, leaving users stuck retrying the same failed bootstrap or skipping into a broken environment.

Useful? React with 👍 / 👎.

Comment on lines +213 to +215
if (progress.progress !== undefined) {
state.progress = Math.min(100, Math.max(0, Math.round(progress.progress)))
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve progress across zero-valued phase transitions

In the legacy/off initialization path, installers emit nonzero progress for one phase and then emit progress: 0 when moving from checks to download or installation (for example, environment checking reaches 50 before download starts at 0). Assigning every zero unconditionally makes the single step progress bar jump backward, whereas the replaced flow explicitly ignored zero updates once progress had begun; retain the current value or switch to an indeterminate phase instead of resetting the displayed step percentage.

Useful? React with 👍 / 👎.

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