Skip to content

fix(threads): pin tinyagents with the SQLite conversation append fix - #8360

Merged
M3gA-Mind merged 2 commits into
tinyhumansai:mainfrom
M3gA-Mind:fix/pin-tinyagents-sqlite-append
Oct 23, 2026
Merged

M3gA-Mind merged 2 commits into
tinyhumansai:mainfrom
M3gA-Mind:fix/pin-tinyagents-sqlite-append

Conversation

@M3gA-Mind

@M3gA-Mind M3gA-Mind commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

On main, every thread message append on the default SQLite backend fails with unsupported capability conditional_stream_append: conversation append requires checked documents and conditional streams. That covers the UI's threads_message_append (threads/ops/crud.rs), the channel host adapters, the relay store and subagent delivery, which all go through TinyAgents' DriverConversationStore over storage::local::backend_for. Production opens a sqlite: default there.

Cause (upstream). TinyAgents' admit_append required ConditionalStreamAppend from the document port. tinystoragedrivers' SQLite driver advertises it only on its stream port, the one the append writes through. tinyhumansai/tinyagents#572 checks each capability on the port that uses it.

This PR

Tests

On the CI host:

  • Red: the same test on main without the bump (scratch branch, not this PR) failed with exactly the error above.
  • Green: this PR, test passes.
  • Plus the lockfile regen and the full check.

Summary by CodeRabbit

  • Tests
    • Added coverage confirming that plain messages can be appended successfully to threads in workspaces using persistent SQLite storage.
    • The test checks this behavior when no storage backend is already installed, helping validate message creation with the SQLite workspace default.

Every thread message append on the default SQLite backend was refused
with "unsupported capability conditional_stream_append": TinyAgents'
admit_append required that capability from the document port, while
SQLite advertises it only on its stream port (the one the append uses).
tinyhumansai/tinyagents#572 checks each capability on the port that
uses it.

Move vendor/tinyagents 1f24dbe -> 540997d (tinyhumansai#572's merge, tinyagents main;
a fast-forward of tinyhumansai#572's commits only, no manifest change) and keep the
reproduction as a regression test: a plain message appends on a
workspace opened on the production default backend kind (SQLite).
@tinysweeper

tinysweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Tiny Sweeper review

Reviewed head: a33a4fd750237130499e299895eefee60ad75ba6

Verdict: Ready for maintainer review · Priority: none
Coverage: Reviewed 1 of 2 files; not reviewed: vendor/tinyagent….
Pull request purpose (title): fix(threads): pin ti…

Diagnostics and supporting details

Full summary

Pull request purpose (title): fix(threads): pin tinyagents with the SQLite conversation append fix. This PR pins tinyagents from `1f24dbe` to `540997d` (the merge of tinyhumansai/tinyagents#572) so that conversation message appends on the production SQLite backend stop failing with `unsupported capability conditional_stream_append`, and adds a regression test that exercises the append path against the persistent default backend kind. The visible diff adds only a test; the vendor submodule bump is not visible in the diff, so the pin and the upstream fix it claims were not directly verifiable.

Unreviewed paths

  • vendor/tinyagents

Review snapshot

Change surface Files Review signal Count
Production 0 Active findings 0
Tests 1 Noted findings 0
Documentation 0 Resolved findings 0
Configuration 0 Pending checks/questions 0

Completeness: Complete
Test assessment: No supported feature-to-test mapping was available; this does not mean tests are absent or passed.

Features

None identified with supported citations.

Tests

No supported feature-to-test mapping was produced. Test execution is not inferred.

Findings

No active actionable findings.

Before merge

None.

Agent review details

critique

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Positive: The critique lane (Answered) found the added test uses the test-only storage lock, a workspace-local SQLite default, and the sibling append helper, with nothing contradicting the looked-up contracts and no defect worth reporting.
  • Lane summary: The added test uses the test-only storage lock, a workspace-local SQLite default, and the same append helper used by sibling tests in the file; nothing in the diff contradicts the looked-up contracts. I found no defect worth reporting. _The code index is behind this pull request (indexed at `3ca4dc84f2f5`), so retrieved context may be out of date._

security

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Positive: The security lane (Answered) found no production code, untrusted input path, CI change, or dependency change introduced by the test.
  • Lane summary: The diff adds one SQLite-only test for appending a conversation message; it introduces no production code, no untrusted input path, and no CI or dependency change. I found nothing worth reporting. _The code index is behind this pull request (indexed at `3ca4dc84f2f5`), so retrieved context may be out of date._

tests

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Positive: The tests lane (Answered) assessed the test as exercising real append behavior that would fail if the conditional-stream-append capability regression returned, asserting on the append outcome rather than mocks.
  • Lane summary: The diff adds a single SQLite-backed regression test to the existing Rust test module `crud_message_append_tests.rs`, asserting that `append_with_test_config` succeeds on a SQLite-default workspace and that no installed backend shadows it. It exercises real append behaviour and would fail if the conditional-stream-append capability regression returned, so it earns its keep; I have no findings. I did not independently verify the helpers it calls (`lock_storage_slot`, `use_persistent_default_for_test`, `append_with_test_config`), but the assertions are on the append outcome rather than on mocks, so nothing in the diff looks like a vacuous test. _The code index is behind this pull request (indexed at `3ca4dc84f2f5`), so retrieved context may be out of date._

commits

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Positive: The commits lane (Answered) found no sensitive content in committed files.
  • Lane summary: No sensitive content in committed files. _The code index is behind this pull request (indexed at `3ca4dc84f2f5`), so retrieved context may be out of date._

description

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Positive: The description lane (Answered) found the description matches the diff, accurately explaining the upstream SQLite `conditional_stream_append` failure, the tinyagents submodule bump (not visible in the diff), and the single new regression test using existing helpers and following the sibling-file test conventions.
  • Lane summary: The description matches the diff: it accurately explains the upstream SQLite `conditional_stream_append` failure, the tinyagents submodule bump (not visible in this diff), and the single new regression test that appends a plain message on a workspace opened with `use_persistent_default_for_test`. The test uses existing helpers (`lock_storage_slot`, `append_with_test_config`, `use_persistent_default_for_test`) and follows the repository's sibling-file test conventions. No reportable defects found. _The code index is behind this pull request (indexed at `3ca4dc84f2f5`), so retrieved context may be out of date._
Evidence and run details
  • Models: ladder/vectors-oai3, deepseek-v4.1-flash
  • Spend: $0.001384
  • Tokens: 83132 input · 2262 output · 1792 cached · 217 embedding
  • Updated: 2026-10-23T23:32:42Z
Head State Pass summary
3ca4dc84f2f5 ready for maintainer review 0 active finding(s), 0 resolved finding(s) (at 2026-10-23T23:20:40Z)
a33a4fd75023 ready for maintainer review 0 active finding(s), 0 resolved finding(s) (at 2026-10-23T23:32:42Z)

tinysweeper 0.1.2

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T23:23:58.560730Z 3ca4dc8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bf42e5ea-f3fd-4ee1-b317-cbace53dfe14
📥 Commits

Reviewing files that changed from the base of the PR and between 3ca4dc8 and a33a4fd.

📒 Files selected for processing: 1
  • crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

📝 Walkthrough

The PR adds a SQLite-feature-gated async test that checks whether appending a plain message succeeds in a SQLite-backed workspace. It also updates the TinyAgents submodule reference.

Changes: SQLite message append

Layer / File(s) Summary
SQLite append test
crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs
Adds a SQLite-gated test that configures persistent storage, creates a thread, and checks that appending a plain message succeeds.

TinyAgents submodule reference

Layer / File(s) Summary
Submodule reference update
vendor/tinyagents
Updates the TinyAgents submodule reference. The referenced commit contents are unavailable.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: senamakel, sanil-23

Merge Risk: ⚪ Minimal · up to a33a4

The pinned fix and SQLite regression coverage are aligned with the stated append failure, with no actionable merge-blocking risk identified.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly identifies the main change: pinning the TinyAgents revision that fixes SQLite conversation append behavior.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the SQLite stream,
A plain message joins the scene.
The thread is made, the append is tried,
A TinyAgents pointer shifts beside.
Soft paws mark the test complete,
Then hop away on quiet feet.

Comment @coderabbitai help to get the list of available commands.

@tinysweeper tinysweeper Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tinysweeper found nothing blocking. Approving.

Diagnostics

Total spend: $0.0002

@tinysweeper tinysweeper Bot added the priority: p3 Whenever. Cosmetic, a nicety, or a cleanup with no user visible effect. label Oct 23, 2026
coderabbitai[bot]
coderabbitai Bot previously approved these changes Oct 23, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3ca4dc84f2

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread crates/openhuman-core/src/threads/ops/crud_message_append_tests.rs
backend_for prefers a process-installed backend over the workspace
default, and other tests install an in-memory backend (which lists every
capability) under lock_storage_slot. Hold that lock for the whole test
and assert nothing is installed, so the append provably runs on the
workspace's SQLite default and cannot pass on memory.
@M3gA-Mind
M3gA-Mind merged commit 88cceb3 into tinyhumansai:main Oct 23, 2026
21 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: p3 Whenever. Cosmetic, a nicety, or a cleanup with no user visible effect.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant