Skip to content

docs(app-session): a thread send may carry files where the host advertises threadFiles - #61

Merged
TheAnimatrix merged 1 commit into
mainfrom
app-session-thread-files
Nov 30, 2026
Merged

TheAnimatrix merged 1 commit into
mainfrom
app-session-thread-files

Conversation

@TheAnimatrix

@TheAnimatrix TheAnimatrix commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Docs and one test vector only; no protocol version change. Goes with mousse-agent/mousse#2505, which lets a paired device send documents with a thread message.

What changed

  • spec/app-session.md, Admissions and attachments: a host that takes files on a thread send advertises threadFiles in net.info ({v:1,maxFiles,maxBytes,extensions}) and routed["orchestrator.send"] 11 or later (queue.enqueue 4). The send carries files:[{name,data}] (base64), inline or staged as a third staged key files. The host checks each file's extension and first bytes and refuses the whole message with file_unsupported or file_too_large. Without threadFiles, a caller sends images only; an older host refuses files with bad_request. routed.thread.attachedFile reads such a file back in 40 KiB pages, shaped like bots.chat.file.
  • spec/vectors/app-session/session.json: new case thread send carries files. The existing case that refuses attachments still holds.

Compatibility

Older phones never send files, so nothing changes for them. A phone that checks threadFiles before sending files never sends them to an older desktop.

Checks

  • The desktop replay (tests/netEngine/appSessionVectors.test.ts in mousse-agent/mousse, with this file vendored) passes all cases, the new one included.

@TheAnimatrix

Copy link
Copy Markdown
Collaborator Author

The engine check fails on a clippy lint in crates/mousse-helper/src/app/paths.rs:1321 (nonminimal_bool), which fails the same way on main at 3b5ac07. This PR changes only docs and a vector.

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