mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-20 10:18:46 +03:00
fix(app): read timeline follow state on composer submit (#61822)
This commit is contained in:
committed by
GitHub
Unverified
parent
a3bcf75042
commit
134d1b411c
@@ -332,10 +332,11 @@ export function createActiveSessionRegion(input: {
|
||||
state,
|
||||
parentID: input.session.data.parentID,
|
||||
centered: input.screen.centered,
|
||||
// Submitting keeps following only when already following. A reader scrolled up stays where they are; the
|
||||
// jump-to-latest button takes them down.
|
||||
// Submitting reads past the automatic unread marker. Keep a reader's own scroll or revealed tool in place.
|
||||
onResponseSubmit: () => {
|
||||
if (input.timeline.view.pinned()) input.timeline.actions.resume()
|
||||
const anchor = input.timeline.follow.anchor()
|
||||
|
||||
if (input.timeline.follow.following() || (anchor && !anchor.partID)) input.timeline.actions.resume()
|
||||
},
|
||||
openParent,
|
||||
focusPrompt: () => focusPrompt(),
|
||||
|
||||
Reference in New Issue
Block a user