Skip to content

fix(renderer): skip hidden-messages notice in message navigation#461

Open
phanen wants to merge 1 commit into
sudo-tee:mainfrom
phanen:fix/jump-previous
Open

fix(renderer): skip hidden-messages notice in message navigation#461
phanen wants to merge 1 commit into
sudo-tee:mainfrom
phanen:fix/jump-previous

Conversation

@phanen

@phanen phanen commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Problem: when max_messages truncates older messages, the synthetic
hidden-messages notice (appended to state.messages via
on_message_updated) is matched by get_prev_rendered_message, so [[
yanks the cursor to the buffer top.

Solution: skip entries where is_renderer_synthetic_message is true in
both get_prev_rendered_message and get_next_rendered_message.

Problem: when max_messages truncates older messages, the synthetic
hidden-messages notice (appended to state.messages via
on_message_updated) is matched by get_prev_rendered_message, so [[
yanks the cursor to the buffer top.

Solution: skip entries where is_renderer_synthetic_message is true in
both get_prev_rendered_message and get_next_rendered_message.
@phanen phanen force-pushed the fix/jump-previous branch from efccdb8 to 34fce21 Compare July 11, 2026 11:24
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