mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
docs(ui): explain reasoning state retention (#9738)
This commit is contained in:
@@ -1350,6 +1350,9 @@ const userOpened = new Set<string>()
|
||||
const MAX_REASONING_STATE = 1000
|
||||
|
||||
function rememberReasoningState(set: Set<string>, id: string) {
|
||||
// Remember the most recent manual display choices without growing forever.
|
||||
// If an old id is evicted, only its open/collapsed override is forgotten;
|
||||
// the reasoning block still renders normally if it appears again.
|
||||
if (set.has(id)) set.delete(id)
|
||||
set.add(id)
|
||||
if (set.size <= MAX_REASONING_STATE) return
|
||||
|
||||
Reference in New Issue
Block a user