Skip to content

Fix: Tags now persist and Back leaves an opened archive in one press - #146

Merged
MemerGamer merged 2 commits into
mainfrom
linux/tags-fix
Oct 10, 2026
Merged

MemerGamer merged 2 commits into
mainfrom
linux/tags-fix

Conversation

@MemerGamer

Copy link
Copy Markdown
Owner

Summary

  • Tag edits never reached user.xdg.tags or the tag database, and tags already set on a file were not shown. Cause: Uno never raises the phased ContainerContentChanging callback that triggered per-row loading, so ListedItem.FileTags stayed null until a scroll; the setter treated null as "not initialised" and skipped the write, and edits started from an empty list. Rows now load from a low-priority dispatch on Linux, edits of unloaded items read the stored tags first (GetFileTagsOrRead), the setter always persists on Linux, and loader results use SetLoadedFileTags so loading never writes back.
  • Double-click on an archive could raise the open command twice before the first navigation finished, pushing the zip location onto the back stack twice (two Back presses). A small in-flight gate drops the second open.
  • Not a regression from Fix: Speed up context menus, tag saves and watcher fallback #138: the load trigger, setter gating and double open path are unchanged by it (diff 0f354e5..HEAD).

Verification

  • Headless Xvfb (sandbox HOME): pre-set Home shown in Tag column (was empty); tagme.txt tagged Work gives getfattr user.xdg.tags="Work"; adding Work to preset.txt gives "Home,Work"; relaunch shows both; double-click Projects.zip then Back once returns to Documents.
  • Files.Platform.Tests: 1190 pass (new tests for preset-tag merge, edit persistence, in-flight gate). Files.App net10.0-desktop build passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_016FAtbHHLQSiJiYcw2vnKiq

MemerGamer and others added 2 commits October 10, 2026 03:18
Uno never raises the phased ContainerContentChanging callback, so rows were
only loaded after the first scroll: FileTags stayed null, pre-set xattr tags
were not shown, and the first edit of a never-loaded item skipped the write.
Load rows from a low-priority dispatch on Linux, let edits of unloaded items
read the stored tags first and always persist, and drop a second concurrent
open of the same archive that pushed a duplicate back-stack entry.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016FAtbHHLQSiJiYcw2vnKiq
Co-Authored-By: GPT-6.1-sol (OpenAI Codex) <noreply@openai.com>
Claude-Session: https://claude.ai/code/session_016FAtbHHLQSiJiYcw2vnKiq
@MemerGamer
MemerGamer merged commit da7378b into main Oct 10, 2026
3 checks passed
@MemerGamer
MemerGamer deleted the linux/tags-fix branch October 10, 2026 05:59
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