Repository navigation
fix(core): 畳みが無効の間は節の控えを持たない(#5479 の続き) - #5483
Merged
Merged
Conversation
- 畳みが無効の間に軽い全文を出した回を確定しても、節の控え(本文が空の記録)を保存しない。保存して FOLD を有効にして再起動した後に、本文が空の節を「前回から変わっていない」と誤って言いうる経路を塞ぐ - 試験: 軽い全文の回を確定した状態の exportState に節が無く、FOLD 有効の器へ読み戻しても「変わっていない」が出ない - digest-session-delta-disabled.test.ts の冒頭と試験名、docs/architecture.md の FOLD の行の説明を、軽い再掲が畳みと独立になった今の振る舞いに合わせる
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.
概要
#5479 のレビューで出た、直さなくてよい指摘の続き。
ALTEROID_TOKEN_SAVING_FOLD_FIXED_TEXT)が無効の間に軽い全文を出した回を確定すると、fullSectionsに本文が空の記録が入って保存されていた。resume したまま FOLD を有効にして再起動すると、本文が空の節を「前回から変わっていない」と誤って言う経路が、理屈の上ではあった。無効なら節を控えない(DigestSessionDeltaのrenderDigestとcommit)。要約直後の軽い全文(系統4)の「全文が載った」旗だけは従来どおり立てる。digest-session-delta-disabled.test.tsの冒頭の説明と末尾の試験名、docs/architecture.mdの FOLD の行の「何も控えず」。軽い再掲が畳みと独立になった今の振る舞いに合わせた。テスト
exportState().sectionsが null で、FOLD 有効の器へ読み戻しても「変わっていない」が出ない。commitの門とfullSectionsの空文字)と、この試験がexportState().sectionsが null でないとして落ちる。復元後は通る。pnpm testを通した。