Skip to content

fix: preserve Library position when watched files arrive - #605

Merged
LuqP2 merged 2 commits into
mainfrom
fix/library-background-arrival-position
Oct 22, 2026
Merged

LuqP2 merged 2 commits into
mainfrom
fix/library-background-arrival-position

Conversation

@LuqP2

@LuqP2 LuqP2 commented Oct 21, 2026

Copy link
Copy Markdown
Owner

New files detected by the folder watcher can send the Library back to the first page and reset its scroll while the user is browsing. Let background arrivals update the Library without forcing that navigation.

Base the Library grid reset signature on folder scope, filters and ordering rather than result count and first/last image IDs. Explicit navigation and filter changes still reset the grid.

Scope: App.tsx only.

Validation: scoped git diff --check passed, and the branch diff against origin/main contains only App.tsx. Build, typecheck and automated tests were not run. Manual acceptance remains pending for background arrivals in paginated and infinite grid layouts, plus resets after changing filters or folder scope.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T23:58:58.933801Z 119470e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 119470ef94

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread App.tsx
Comment on lines +2825 to +2826
JSON.stringify(activeImageScope),
selectedNodes.join('\u001f'),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include visual-search changes in the grid reset signature

With Local Visual Search enabled, scroll down through one set of results and run Find Visually Similar on another image. runVisualSimilar replaces semanticResult, but applySemanticResult keeps the sort order at 'relevance' and leaves searchQuery unchanged. Since this signature includes neither the semantic query nor its result identity, the grid now retains the previous scroll offset instead of showing the new highest-ranked matches and pinned source image. Previously, changes to the filtered result endpoints triggered that reset. Include the semantic search identity in the signature while continuing to exclude background file arrivals.

AGENTS.md reference: AGENTS.md:L236-L236

Useful? React with 👍 / 👎.

@LuqP2
LuqP2 merged commit 4ae5a59 into main Oct 22, 2026
1 check passed
@LuqP2
LuqP2 deleted the fix/library-background-arrival-position branch October 22, 2026 00:10
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