Repository navigation
feat(threads): archive threads idle for five days, and bring them back on activity - #8
Merged
Merged
Conversation
…k on activity A daily sweep hides bot threads nobody has touched for five days, skipping anything pinned, busy, unread, snoozed or still in use, and a new message or turn puts one back. A person unarchiving stamps restoredAt so the idle clock starts over, and a failed bookkeeping save never drops the message. Co-Authored-By: Claude Code <noreply@anthropic.com>
…files The file-size ratchet caps server/index.ts, server/config.ts, server/store.ts and shared/wire.ts, and this feature pushed all four over. The held-thread check and sweep start now live in server/host, the thread clocks and restore in their own module, the config.json mcpServers reader in its own, and the thread ordering helpers in shared/thread-order.ts. Behaviour is unchanged. Co-Authored-By: Claude Code <noreply@anthropic.com>
4 of 5 tasks
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.
개요
봇 스레드가 5일 동안 아무 변화가 없으면 자동으로 보관됩니다. 새 메시지나 새 턴이 오면 다시 나오고, 사람이 보관을 해제하면 유휴 시계가 그 시점부터 다시 시작됩니다.
updatedAt,lastThreadOrderAt,createdAt,restoredAt중 가장 나중 값입니다.archivedBy: "auto"를 남깁니다. 사람이 보관한 스레드는 라우팅에서 빠지고, 자동 보관된 스레드는 그대로 남습니다.threads.autoArchive( 기본 켜짐) 과threads.autoArchiveDays( 기본 5, 1–3650). 꺼면 설정 화면은 다음 작업입니다.이유
활성 상태로 방치된 스레드가 시간이 지나면서 누적됩니다. 사람이 직접 보관하지 않아도 쓰지 않는 스레드는 목록에서 빠지고, 다시 쓰면 돌아옵니다.
설정 화면에서 켜고 끄는 토글과 "자동 보관" 표시는 번역 16개가 필요해 이 PR에서 빼고 다음으로 미룩니다.
테스트 방법
고립 피스처로만 확인했고, 사용 중인 앱이나 데이터는 건드리지 않았습니다.
Before
복원 저장이 실패하면 자동 복원이 메시지 자체를 뒤로 되돌렸습니다.
server/independent-task-store.test.ts(vitest, 2026-11-13 00:51:15):After
pnpm typecheck통과.restoredAt기록, 복원 저장 실패 시 메시지 유지를 다룹니다.파일 크기 래칫 때문에 자동 보관 연결 코드를
server/index.ts,server/config.ts,server/store.ts,shared/wire.ts에서 분리했습니다(server/host/auto-archive.ts,server/thread-activity.ts,server/custom-mcp.ts,shared/thread-order.ts). 동작은 같습니다.🤖 Generated with Claude Code