Closed
Conversation
5 tasks
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Add archivedAt field to OrchestrationThread schema in contracts - Add ThreadArchiveCommand and ThreadUnarchiveCommand to contracts - Add ThreadArchivedPayload and ThreadUnarchivedPayload to contracts - Add thread.archived and thread.unarchived to OrchestrationEventType - Update DispatchableClientOrchestrationCommand and ClientOrchestrationCommand - Add archive/unarchive handlers in the decider - Add archive/unarchive event handlers in the projection pipeline - Add archive/unarchive to the projector - Add migration 018 for archived_at column - Add archivedAt to ProjectionThread schema and SQL queries - Add archivedAt to web Thread type - Add showArchivedThreads setting to appSettings - Update Sidebar: archive/unarchive context menu, show toggle button - Filter archived threads in sidebar based on showArchivedThreads setting - Update all tests to include archivedAt field Agent-Logs-Url: https://github.com/OpenKnots/okcode/sessions/b99a8fc7-a48f-4212-9ce8-eb793dcf4110 Co-authored-by: BunsDev <68980965+BunsDev@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add thread archiving support as a distinct action
Add thread archiving support
Mar 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds thread archiving as a distinct action from hard deletion. Archived threads are hidden from the sidebar by default with a toggle to reveal them.
What Changed
Contracts
archivedAt: string | nulltoOrchestrationThread(decoding defaults tonullfor backward compat)ThreadArchiveCommand,ThreadUnarchiveCommand,ThreadArchivedPayload,ThreadUnarchivedPayloadthread.archived/thread.unarchivedtoOrchestrationEventTypeand the event unionDispatchableClientOrchestrationCommandandClientOrchestrationCommandServer
018_ProjectionThreadsArchivedAt: addsarchived_at TEXTcolumn toprojection_threadsProjectionThreadschema + SQL upsert/select updated to carryarchived_atdecider.ts: handlesthread.archive→thread.archivedandthread.unarchive→thread.unarchivedprojector.ts+ProjectionPipeline.ts: apply archive/unarchive events to in-memory read model and DB projectionWeb
Threadtype gainsarchivedAt: string | nullsyncServerReadModelmapsarchivedAtfrom the read modelshowArchivedThreads: booleanapp setting (defaultfalse)Why
Threads could previously only be removed via hard delete (
deletedAt). Archiving is a non-destructive alternative — lets users hide old threads without losing history, matching theTODO.mdentry for this feature.UI Changes
Archive toggle button added to the Projects section header; thread context menu gains Archive/Unarchive action (mutually exclusive based on current
archivedAtstate).Checklist