Skip to content

fix(steps): preserve timestamps across app restart#74

Merged
johannesjo merged 3 commits intomainfrom
claude/review-daily-changes-M5EKm
Apr 16, 2026
Merged

fix(steps): preserve timestamps across app restart#74
johannesjo merged 3 commits intomainfrom
claude/review-daily-changes-M5EKm

Conversation

@johannesjo
Copy link
Copy Markdown
Owner

applyTimestamps used i >= prevCount with prevCount defaulting to 0, so on
the first read after a relaunch every existing entry satisfied the condition
and got stamped with the same "now", destroying distinct timestamps from
earlier sessions.

Treat a missing processedCount map entry as a first observation: seed the
counter to the current length and only fill in entries that are missing a
timestamp. Subsequent reads keep the existing overwrite-on-new-entry
behavior so AI-written timestamps on fresh appends are still replaced with
the host clock.

https://claude.ai/code/session_016TiVEfjjCB6qw5ZTTC13BE

claude added 3 commits April 16, 2026 19:31
applyTimestamps used `i >= prevCount` with prevCount defaulting to 0, so on
the first read after a relaunch every existing entry satisfied the condition
and got stamped with the same "now", destroying distinct timestamps from
earlier sessions.

Treat a missing processedCount map entry as a first observation: seed the
counter to the current length and only fill in entries that are missing a
timestamp. Subsequent reads keep the existing overwrite-on-new-entry
behavior so AI-written timestamps on fresh appends are still replaced with
the host clock.

https://claude.ai/code/session_016TiVEfjjCB6qw5ZTTC13BE
Clicking the suggested next action immediately wrote the text + CR to the
agent via sendPrompt, giving no chance to edit and making accidental clicks
irreversible. The commit that introduced it (0660b9b) even described the
intended behavior as pre-fill.

Route the click through setPrefillPrompt + a focus trigger on the prompt
input so the text lands in the textarea and the user can refine and send.

https://claude.ai/code/session_016TiVEfjjCB6qw5ZTTC13BE
The createEffect that reported the steps panel's natural height only
re-ran when latestStep or isInteracting changed, so width changes that
caused the `next` line to wrap left the reported height stale.

Observe the latest card with a ResizeObserver and turn latestCardRef
into a signal so the observer reattaches when the card element changes.

https://claude.ai/code/session_016TiVEfjjCB6qw5ZTTC13BE
@johannesjo johannesjo merged commit 70c60cb into main Apr 16, 2026
2 checks passed
@johannesjo johannesjo deleted the claude/review-daily-changes-M5EKm branch April 16, 2026 20:17
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.

2 participants