Problem
Messaging adapters introduce untrusted external input from potentially hostile users. This is fundamentally different from the desktop UI where the local user is trusted.
Default Tool Set (read-only)
Messaging users get a restricted tool set by default:
- query_documents, search_indexed_chunks, list_indexed_documents, summarize_document, search_web
Opt-in tools (require explicit config per adapter):
- read_file, write_file, edit_file, run_shell_command, search_code, list_files
Input Sanitization
- Strip platform-specific formatting from messages
- Enforce message length limits (4096 chars)
- Filter injection patterns
- Validate message encoding
Acceptance Criteria
Dependencies
Problem
Messaging adapters introduce untrusted external input from potentially hostile users. This is fundamentally different from the desktop UI where the local user is trusted.
Default Tool Set (read-only)
Messaging users get a restricted tool set by default:
Opt-in tools (require explicit config per adapter):
Input Sanitization
Acceptance Criteria
Dependencies