Expand description
Explicit local attachment ingestion. No URL fetches or implicit path expansion in prompts. Bytes are captured once and retained in private session history; archive/memory projections deliberately omit image/document source payloads.
Structs§
Constants§
Functions§
- build_
user_ content - load_
attachment - Asynchronous bounded read on an opened regular-file handle. On Unix, O_NONBLOCK avoids FIFO-open hangs and O_NOFOLLOW refuses symlink leaves. Parent symlinks are allowed: selection of a local path is explicit consent.
- load_
attachment_ sync - Synchronous variant of
load_attachmentfor use in non-async contexts (TUI command handlers). Calls the blocking I/O directly on the current thread — acceptable for the TUI, which already blocks on user input.