Skip to content

fix: do not recreate archived default channels at startup - #413

Merged
xuiltul merged 2 commits into
mainfrom
fix/keep-archived-default-channels
Nov 6, 2026
Merged

xuiltul merged 2 commits into
mainfrom
fix/keep-archived-default-channels

Conversation

@xuiltul

@xuiltul xuiltul commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • ensure_runtime_dir created empty general.jsonl / ops.jsonl whenever they were missing. After archiving either channel (closed meta kept, JSONL moved to archive/), every server start or CLI call put an empty file back.
  • Skip the default when the channel already has a meta file; a fresh runtime still gets both channels.

Test plan

  • New unit test: an archived general stays without a JSONL, ops is still created
  • tests/unit/core/test_runtime_init.py, tests/unit/cli/commands/test_init_cmd.py

🤖 Generated with Claude Code

xuiltul and others added 2 commits November 7, 2026 03:01
ensure_runtime_dir touched general.jsonl and ops.jsonl whenever they were
missing, so archiving either channel left an empty file behind on the next
start or CLI call. Skip the default when the channel already has a meta
file; an archived channel always keeps its closed meta.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@xuiltul
xuiltul merged commit c27163f into main Nov 6, 2026
4 checks passed
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