Repository navigation
fix: pids が尽きて git を起こせなかった回の退避の記録が、前の回の枝名を台帳から消さないようにする - #4400
Merged
Merged
Conversation
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.
Refs #1266
何が残っていたか
#4398 の続きである。#4398 は未 push 観測(
lastUnpushedWorkObservation)を直した。退避の記録(lastRescue)にも、同じ穴が残っていた。runRescueはgit symbolic-refを起こせない。そのためbranch: nullにnotPushed: { reason: 'error' }の作業ツリーを送る。mergeRescueは...treeでこの回の値を丸ごと置くので、前の回で取れていた枝名がnullで上書きされていた。pushed(退避 ref)は前の回のものを引き継いでいたので、取り戻す手順は残っていた。変えたこと
mergeRescueで、この回のbranchがnullで、前の回の同じ作業ツリーが枝名を持っていたら、枝名を引き継ぐ。引き継いだ時刻はbranchCarriedFromAt(rescueWorktreeSchemaに足した任意の欄)で名乗る。before.branchCarriedFromAt ?? before.atとし、続けて取れなかった回でも最初に枝名を見た回の時刻のまま動かない。carryKnownBranchesと同じである。null の理由(detached HEAD か失敗か)では分けない。時刻を名乗るので嘘にならない。apps/daemon/openapi.jsonをpnpm --filter "@alteroid/daemon..." buildで再生成した(欄が1つ増えただけ)。確かめたこと(ローカル。2026-10-10)
pnpm --filter @alteroid/core --filter @alteroid/cli --filter @alteroid/web typecheckは緑。vitest runでmanager-rescue-ref-cleanup/rescue-ref/manager-workspace-nudgeが 3 files / 97 tests 緑。prettier --checkとeslintを通した。notPushedはそのまま残る。確かめていないこと・気づいたこと
branch: null、notPushed: error)で届いているかは見ていない。根拠はrescue-ref.tsのrunRescueの読みだけ(symbolic-refが失敗すればbranchはnull)。lastRescueのbranchは、いまのところどの表示にも出ていない(manager_listのdescribeRescue、器の入れ替え後の nudge のどちらも使っていない)。読めるのはGET /managersの応答と台帳だけである。表示は変えていない。Alteroid-Issue-Done: none