Commit Graph
7 Commits
Author SHA1 Message Date
Kenneth ZhaoandXubin Ren 105230cc34 fix(cli): print response text when streaming fails in interactive mode 2026-07-06 15:28:10 +08:00
Kenneth ZhaoandXubin Ren ef9780719d style: fix import ordering in mattermost tests 2026-07-06 12:14:57 +08:00
Kenneth ZhaoandXubin Ren cc70a2a79f fix(mattermost): fix file download paths and mobile streaming
- Use Mattermost file metadata/download API paths that work with current servers
- Buffer streamed content and post the final reply once for mobile clients that ignore post edits
- Keep attachment upload behavior on the first split chunk
2026-07-06 12:14:57 +08:00
Kenneth ZhaoandXubin Ren f9806cc60f fix(mattermost): address second round of review feedback
- Send pairing code response (not empty message) for denied DMs
- Resolve actual channel type in action events before permission check
- Use word-boundary regex in _is_mentioned to avoid partial matches
- Use safe_filename for download path sanitization
- Add tests: denied DM pairing, denied action event, is_mentioned boundary
2026-07-06 12:14:57 +08:00
Kenneth ZhaoandXubin Ren 76877036f7 mattermost: remove unused _BOT_MENTION_RE 2026-07-06 12:14:57 +08:00
Kenneth ZhaoandXubin Ren a710a7d6f7 fix(mattermost): address review comments
- Attachments now only attached to first chunk when message is split
- Filename sanitized with Path(name).name to prevent path traversal
- Updated streaming tests to match buffer-and-post-at-end pattern
  (iOS compatibility)
2026-07-06 12:14:57 +08:00
Kenneth ZhaoandXubin Ren fff38f11a7 feat: add Mattermost channel support 2026-07-06 12:14:57 +08:00