Skip to content

Import OpenCode and Kilo message parts - #92

Merged
luca-ctx merged 1 commit into
mainfrom
agent/opencode-kilo-message-part-import-v2
Jul 7, 2026
Merged

Import OpenCode and Kilo message parts#92
luca-ctx merged 1 commit into
mainfrom
agent/opencode-kilo-message-part-import-v2

Conversation

@luca-ctx

@luca-ctx luca-ctx commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Import current OpenCode/Kilo message + part SQLite rows when legacy message rows only contain metadata.
  • Store text parts as message events with stable message_id/part_id cursors and report malformed fallback JSON instead of silently skipping it.
  • Emit file-touch metadata only from explicit patch-part path/files metadata, without storing or indexing raw patch/tool payloads.

Closes #90.

Verification

  • cargo fmt --check
  • cargo test -p ctx-history-capture --lib message_part -- --nocapture
  • cargo test -p ctx-history-capture --lib tests::native_sqlite
  • cargo test -p ctx-history-capture
  • Manual generated OpenCode/Kilo SQLite imports: each imported 4 sessions / 10 events / 0 failures; ctx search done returned message+part cursors; SQL showed 0 Begin Patch search hits and 2 file-touch rows per provider.

@luca-ctx
luca-ctx merged commit c24cf71 into main Jul 7, 2026
1 check failed
@luca-ctx
luca-ctx deleted the agent/opencode-kilo-message-part-import-v2 branch July 7, 2026 17:47
luca-ctx pushed a commit to rNoz/ctx that referenced this pull request Aug 2, 2026
…rt-import-v2

Import OpenCode and Kilo message parts
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.

Kilo SQLite source fails to import: schema lacks text/content/message keys

1 participant