Skip to content

feat(threads): persist manual sidebar order and reply sorting - #617

Merged
nixuuu merged 1 commit into
devfrom
feat/thread-sort-order
Nov 13, 2026
Merged

nixuuu merged 1 commit into
devfrom
feat/thread-sort-order

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Adds owner-scoped manual sidebar positions with one thread write per move. New threads receive a fractional key before existing threads; old rows fall back to creation order without a backfill. Adds a separate last-agent-reply timestamp and device-local sorting preference.

The stack is rebased on dev 464fffffa (#620). Migration 0133_thread_order follows 0132_worker_ingest_outcomes; the registration, expected schema list and Polish documentation use 0133. Number 0134 is left free for the thread-cache warming stack. The schema/order checks passed 28/28 after this rebase.

Validation (commands run with nice): installation, generated-code check, full typecheck, lint, formatting and web build passed. Focused gateway order and schema checks passed 28/28; they cover ownership, invalid/stale bounds, concurrent moves, key growth, old rows, durable reads, new-thread placement and reply timestamps.

CI passed on all three rebased heads, including every test shard, static checks and builds. The PRs remain drafts at the maintainer's request. Native gesture checks are deferred to nightly testing and do not block this handoff.

Local failure investigation: the earlier full run had 2690 pass, 166 skip and one transient checkout-alias busy-directory rejection. Later runs under heavy host load hit 5-second deadlines and linked-computer heartbeat/disconnection failures. None of the ten failing test files is changed by this stack. All ten were then rerun one file at a time, with the default timeouts, through nice -n 10 bun run check:tmp: 85 pass, 0 fail. The move file includes all 20 repeated history/file transfers plus its restart, owner and move-all cases. No production code, tests or timeout values were changed to obtain these results. Earlier linked-computer failures also reproduced on original base 38214a54c without this feature.

Isolated file Passed
scripts/channel-identity.test.ts 3
scripts/release.test.ts 18
tests/integration/ask-user.test.ts 13
tests/integration/bench-plans.test.ts 1
tests/integration/bot-outgoing-files.test.ts 6
tests/integration/bot-workspace.test.ts 4
tests/integration/bot-view-deltas.test.ts 5
tests/integration/composer-shell-linked.test.ts 1
tests/integration/thread-branches.test.ts 8
tests/integration/computer-moves.test.ts 26

Every isolated check:tmp run reported nothing left in its private temp directory. The complete local suite was not rerun after this investigation; the full-suite evidence is the green CI on each current head.

Remote thread positions remain editable at their home and travel through incremental metadata replication. Polish API, data-model and linked-computer docs define grouping and Working behavior.

Copy audit (§8): no UI surface is added in this layer. New gateway errors state the problem and an action (for example, absent → “The order changed elsewhere. Refresh the list and try again.”). Sort choice labels use sentence case and existing terminology. Width/theme checks belong to the web layer.

@nixuuu
nixuuu force-pushed the feat/thread-sort-order branch 2 times, most recently from f571ade to 820b090 Compare November 13, 2026 09:56
@nixuuu
nixuuu force-pushed the feat/thread-sort-order branch from 820b090 to f284b96 Compare November 13, 2026 10:12
@nixuuu
nixuuu added this pull request to stack #632 November 13, 2026 10:30
@nixuuu
nixuuu marked this pull request as ready for review November 13, 2026 10:33
@nixuuu
nixuuu merged commit d3704c8 into dev Nov 13, 2026
12 checks passed
@nixuuu
nixuuu deleted the feat/thread-sort-order branch November 13, 2026 10:34
nixuuu added a commit that referenced this pull request Nov 13, 2026
## Projekt workspace'u — zaakceptowany układ v2

Podgląd plików przechodzi z modala do zakładek jednego wątku. Sygnet
projektu, skracany tytuł i karty dzielą rząd nagłówka, z aktywną kartą
zawsze widoczną i przełącznikiem overflow. Prawy rail obsługuje jeden
minimalny moduł. Bez modułu podsumowanie jest dokowane i widoczne; z
modułem jest zamkniętą domyślnie kartą pływającą. Na wąskich ekranach
obie powierzchnie używają arkuszy.

Użytkownik zaakceptował układ v2 i udzielił jawnej zgody na
implementację. Przyjęte decyzje: jeden zastępowalny czysty preview,
utrwalany przez Edit/Keep tab/dwuklik, zakres cwd/worktree wątku i
mobilna edycja natywna bez kolorów podczas pisania (kolory w viewerze i
Preview changes). Usunięto sekcję otwartych decyzji.

Dokument uwzględnia jeden przycisk menu wiersza (#608), zachowanie
treści PR przy odświeżaniu (#611), bounded warming/cache transkryptu
(#622/#623/#629), niezależne sortowanie sidebara (#617/#619/#626),
kompaktowy tekst stanów preview (#634), poprawne stany ChoiceControl
(#637), kolejkę kontynuacji (#630) i podsumowania jej wierszy (#633).
Nie dodaje pełnych snapshotów ani prefetch plików podczas warming.

Siedem kompletnych warstw będzie osobnym stosem z podstawą dev.
Wszystkie PR implementacyjne pozostaną draftami do ukończenia i
weryfikacji całości oraz wspólnego scalenia przez maintenera. Migracje
muszą zachować monotoniczność względem aktualnego dev. Dokumentacyjny PR
po zielonym CI jest gotowy do scalenia przez maintenera.

## Weryfikacja i ograniczenia

- Rebase na dev `1626a3e6b05494e7aec77942bd818950468a3b58` bez
konfliktów.
- `nice -n 10 bun run format` i `nice -n 10 bun run format:check`
przeszły. Konfiguracja pomija Markdown; dokument sprawdzono ręcznie.
`git diff --check` bez błędów po usunięciu pustej linii końcowej.
- Brak zmian kodu aplikacji i kontraktów; testy wykonania oraz pomiary
budżetów należą do stosu implementacyjnego.
- Samodzielna makieta v2 poza repozytorium, 32 435 bajtów, przezroczyste
html/body, trzy stany × trzy szerokości × dwa motywy. Poprzednio
wyrenderowana i obejrzana bez błędów konsoli.

## Copy audit (§8)

Brak zmian produkcyjnych etykiet. Projekt zachowuje `Thread`, `Keep
tab`, `Thread details`, `Open in tab`, `Collapse panel` / `Show panel`
oraz dostępne nazwy obu kontekstów `+`. Zachowuje jeden przycisk menu
wiersza i kompaktowy tekst statusów pliku. Krótkie i długie etykiety są
pokazane w makiecie; rzeczywiste powierzchnie i stany będą audytowane w
każdej warstwie UI.
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