Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(attachments, chatService, core): update attachment handling and chat options

Steven Enamakelcd51b3e052c4
diff --git a/app/src/lib/attachments.ts b/app/src/lib/attachments.ts
index 52823b8238..ac7e7fd83b 100644
--- a/app/src/lib/attachments.ts
+++ b/app/src/lib/attachments.ts
@@ -2,10 +2,10 @@
* Utilities for multimodal chat attachments.
*
* Originals travel as typed `ContentPart`s ({@link attachmentsToParts}) next to
- * the message text; the core stages them and returns durable
- * `[ATTACHMENT:…]` references, which {@link parseAttachmentReferences} reads
- * back for display. The `[IMAGE:]`/`[FILE:]` marker grammar is an internal
- * staging format of the core and is no longer built here.
+ * the message text; the core stages them and returns durable opaque typed
+ * references. {@link parseAttachmentReferences} remains for legacy marker
+ * records. The `[IMAGE:]`/`[FILE:]` marker grammar is an internal staging
+ * format of the core and is no longer built here.
*/
import debugFactory from 'debug';
diff --git a/app/src/services/chatService.ts b/app/src/services/chatService.ts
index 15aabbf21c..a8d00b63fd 100644
--- a/app/src/services/chatService.ts
+++ b/app/src/services/chatService.ts
@@ -892,6 +892,7 @@ export function subscribeChatEvents(listeners: ChatEventListeners): () => void {
};
}
+// UI-only send options; the RPC `queue_mode` remains a server-owned string.
type QueueMode = 'interrupt' | 'steer' | 'followup' | 'collect' | 'parallel';
interface ChatSendParams {
diff --git a/crates/openhuman-core/src/threads/store/mod.rs b/crates/openhuman-core/src/threads/store/mod.rs
index ac7b32f74a..f76f2cc179 100644
--- a/crates/openhuman-core/src/threads/store/mod.rs
+++ b/crates/openhuman-core/src/threads/store/mod.rs
@@ -72,6 +72,7 @@ impl From<types::ConversationPurgeStats> for ConversationPurgeStats {
// Only the hosted-channel relay (`channels`) claims turns.
#[cfg(feature = "channels")]
pub(crate) use bus::claim_channel_turn;
+#[cfg(test)]
pub(crate) use bus::persist_channel_message;
pub use bus::register_conversation_persistence_subscriber;
pub use store::{