feat(ui): working vertical slice — dashboard, channel view, send
- mattermost-dashboard-mode: list channels from bridge - mattermost-channel-mode: view history and send messages - Interactive connection prompt (password in memory only) - Fix JSON array parsing (vectors → lists) in protocol layer - Add mattermost-reset-state for clean reconnects - Add dev-check.sh for quick Rust validation - Verified end-to-end: Emacs → Bridge → Mattermost → back
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
(defun mattermost-connect-to-bridge ()
|
||||
"Connect to the running Rust bridge."
|
||||
(interactive)
|
||||
(when (and mattermost--process (process-live-p mattermost--process))
|
||||
(when (and (boundp 'mattermost--process) mattermost--process (process-live-p mattermost--process))
|
||||
(delete-process mattermost--process))
|
||||
|
||||
(setq mattermost--process
|
||||
@@ -46,7 +46,8 @@
|
||||
(setq lines (butlast lines)))
|
||||
|
||||
(dolist (line lines)
|
||||
(let ((msg (ignore-errors (json-parse-string line :object-type 'plist))))
|
||||
;; ДОБАВЛЕНО: :array-type 'list чтобы JSON-массивы становились списками, а не векторами
|
||||
(let ((msg (ignore-errors (json-parse-string line :object-type 'plist :array-type 'list))))
|
||||
(if msg
|
||||
(let ((id (plist-get msg :id))
|
||||
(type (plist-get msg :type)))
|
||||
|
||||
Reference in New Issue
Block a user