Skip to content

feat(cli): add session offload command - #245

Merged
dzianisv merged 3 commits into
devfrom
session-offload
Aug 14, 2026
Merged

feat(cli): add session offload command#245
dzianisv merged 3 commits into
devfrom
session-offload

Conversation

@dzianisv

Copy link
Copy Markdown
Owner

Adds JSONL session archive/import CLI with age-based verified deletion, storage metrics, and optional vacuum.\n\nTests:\n-
• Packages in scope: @opencode-ai/app, @opencode-ai/cli, @opencode-ai/client, @opencode-ai/codemode, @opencode-ai/console-app, @opencode-ai/console-core, @opencode-ai/console-function, @opencode-ai/console-mail, @opencode-ai/console-resource, @opencode-ai/console-support, @opencode-ai/core, @opencode-ai/desktop, @opencode-ai/effect-drizzle-sqlite, @opencode-ai/effect-sqlite-node, @opencode-ai/enterprise, @opencode-ai/function, @opencode-ai/http-recorder, @opencode-ai/httpapi-codegen, @opencode-ai/llm, @opencode-ai/plugin, @opencode-ai/protocol, @opencode-ai/schema, @opencode-ai/script, @opencode-ai/sdk, @opencode-ai/sdk-next, @opencode-ai/server, @opencode-ai/session-ui, @opencode-ai/slack, @opencode-ai/stats-app, @opencode-ai/stats-core, @opencode-ai/stats-server, @opencode-ai/storybook, @opencode-ai/tui, @opencode-ai/ui, @opencode-ai/web, opencode
• Running typecheck in 36 packages
• Remote caching disabled

@opencode-ai/ui:typecheck: cache hit, replaying logs c928131947c3a291
@opencode-ai/ui:typecheck: $ tsgo --noEmit
@opencode-ai/client:typecheck: cache hit, replaying logs 06aa7bc92a6b34ad
@opencode-ai/stats-app:typecheck: cache hit, replaying logs 9d8b3cea39d655d3
@opencode-ai/client:typecheck: $ tsgo --noEmit
@opencode-ai/stats-app:typecheck: $ tsgo --noEmit
@opencode-ai/console-core:typecheck: cache hit, replaying logs 83c7f85105351632
@opencode-ai/effect-sqlite-node:typecheck: cache hit, replaying logs e6a1679da68988f5
@opencode-ai/console-core:typecheck: $ tsgo --noEmit
@opencode-ai/console-app:typecheck: cache hit, replaying logs 9aed9737ec691d95
@opencode-ai/effect-sqlite-node:typecheck: $ tsgo --noEmit
@opencode-ai/plugin:typecheck: cache hit, replaying logs f1fefc17a3fb8f0f
@opencode-ai/desktop:typecheck: cache hit, replaying logs a1d096a94d97954d
@opencode-ai/desktop:typecheck: $ tsgo -b
@opencode-ai/httpapi-codegen:typecheck: cache hit, replaying logs 3f5a54d585ccc985
@opencode-ai/tui:typecheck: cache hit, replaying logs 4dbb3b11a2716311
@opencode-ai/tui:typecheck: $ tsgo --noEmit
@opencode-ai/console-app:typecheck: $ tsgo --noEmit
@opencode-ai/plugin:typecheck: $ tsgo --noEmit
@opencode-ai/enterprise:typecheck: cache hit, replaying logs 232bd5328b919f53
@opencode-ai/httpapi-codegen:typecheck: $ tsgo --noEmit
@opencode-ai/console-support:typecheck: cache hit, replaying logs cfe0cb9b8310309b
opencode:typecheck: cache hit, replaying logs 554a645cd1e99afb
@opencode-ai/enterprise:typecheck: $ tsgo --noEmit
@opencode-ai/console-support:typecheck: $ tsgo --noEmit
opencode:typecheck: $ tsgo --noEmit
@opencode-ai/app:typecheck: cache hit, replaying logs 6b6d395bc70adf0d
@opencode-ai/cli:typecheck: cache hit, replaying logs 7816dcad1c73592a
@opencode-ai/cli:typecheck: $ tsgo --noEmit
@opencode-ai/app:typecheck: $ tsgo -b
@opencode-ai/server:typecheck: cache hit, replaying logs abdcfe2849bfa93c
@opencode-ai/server:typecheck: $ tsgo --noEmit
@opencode-ai/stats-core:typecheck: cache hit, replaying logs 04c005d757df7964
@opencode-ai/session-ui:typecheck: cache hit, replaying logs ec56142af7ea1c47
@opencode-ai/stats-core:typecheck: $ tsgo --noEmit
@opencode-ai/effect-drizzle-sqlite:typecheck: cache hit, replaying logs 61893a0a661c53c7
@opencode-ai/stats-server:typecheck: cache hit, replaying logs f067e54ee3b0a47d
@opencode-ai/session-ui:typecheck: $ tsgo --noEmit
@opencode-ai/codemode:typecheck: cache hit, replaying logs 122a5c14530dcb61
@opencode-ai/stats-server:typecheck: $ tsgo --noEmit
@opencode-ai/http-recorder:typecheck: cache hit, replaying logs 6669bb6a9251e676
@opencode-ai/effect-drizzle-sqlite:typecheck: $ tsgo --noEmit
@opencode-ai/codemode:typecheck: $ tsgo --noEmit
@opencode-ai/protocol:typecheck: cache hit, replaying logs de5ecfb8a2534d45
@opencode-ai/http-recorder:typecheck: $ tsgo --noEmit
@opencode-ai/core:typecheck: cache hit, replaying logs e28ccd25bb2286b2
@opencode-ai/protocol:typecheck: $ tsgo --noEmit
@opencode-ai/core:typecheck: $ tsgo --noEmit
@opencode-ai/sdk-next:typecheck: cache hit, replaying logs e7e42e3d7e40935c
@opencode-ai/sdk-next:typecheck: $ tsgo --noEmit
@opencode-ai/slack:typecheck: cache hit, replaying logs 3154a2ef449020f4
@opencode-ai/console-function:typecheck: cache hit, replaying logs 0c93479644a859fc
@opencode-ai/slack:typecheck: $ tsgo --noEmit
@opencode-ai/schema:typecheck: cache hit, replaying logs 4ae160b9ac37596d
@opencode-ai/console-function:typecheck: $ tsgo --noEmit
@opencode-ai/sdk:typecheck: cache hit, replaying logs d7fb65ff81f0be7b
@opencode-ai/schema:typecheck: $ tsgo --noEmit
@opencode-ai/llm:typecheck: cache hit, replaying logs c3429dfc1470690d
@opencode-ai/sdk:typecheck: $ tsgo --noEmit
@opencode-ai/llm:typecheck: $ tsgo --noEmit

Tasks: 30 successful, 30 total
Cached: 30 cached, 30 total
Time: 141ms >>> FULL TURBO\n- bun test v1.3.14 (d1632b29)

@github-actions

Copy link
Copy Markdown

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

Copy link
Copy Markdown

The following comment was made by an LLM, it may be inaccurate:

@github-actions

Copy link
Copy Markdown

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@dzianisv
dzianisv merged commit b9de2a7 into dev Aug 14, 2026
7 of 9 checks passed
@dzianisv
dzianisv deleted the session-offload branch August 14, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant