Skip to content

Support for pushing audio message transcriptions back into database & fix for Windows WhatsApp DSN handling#22

Open
chz160 wants to merge 34 commits into
MaxGhenis:mainfrom
chz160:main
Open

Support for pushing audio message transcriptions back into database & fix for Windows WhatsApp DSN handling#22
chz160 wants to merge 34 commits into
MaxGhenis:mainfrom
chz160:main

Conversation

@chz160
Copy link
Copy Markdown

@chz160 chz160 commented May 11, 2026

This pull request introduces support for message transcription metadata in the database, improves message retrieval ordering, and enhances WhatsApp group chat name handling. It also adds related tests and minor platform detection improvements.

Database and Message Model Enhancements:

  • Added transcript, transcribed_at_ms, and transcript_model fields to the Message struct and database schema to store transcription metadata for messages. Includes migration logic and ensures UpsertMessage does not overwrite these fields. [1] [2] [3] [4] [5]
  • Implemented SetMessageTranscript method in Store to safely update transcription metadata for messages, with comprehensive unit tests covering edge cases and idempotency. [1] [2]

Message Query and Ordering Improvements:

  • Modified GetMessagesByConversations and GetMessagesByConversationsRange to always return the newest N messages, ordered ascending by timestamp and message ID (for tie-breaking), improving pagination consistency. Added tests to verify ordering and tie-breaking. [1] [2] [3]

WhatsApp Group Chat Name Derivation:

  • Improved WhatsApp group chat import: if a group chat has no real name or its name is just a raw JID, the importer now attempts to derive a readable group name from participant names, falling back to the JID only as a last resort. [1] [2]

Platform and Dependency Updates:

  • Added platform detection helpers (iMessageSyncSupported, isDarwin) and corresponding tests to conditionally enable iMessage sync and macOS notifications only on Darwin (macOS) systems. [1] [2] [3]
  • Updated dependencies in go.mod, promoting some packages from indirect to direct dependencies. [1] [2]

Copilot AI and others added 30 commits May 11, 2026 00:10
Agent-Logs-Url: https://github.com/chz160/openmessage/sessions/4500974b-9ba5-4885-ad0a-fa7bb708545a

Co-authored-by: chz160 <3420276+chz160@users.noreply.github.com>
…init

Fix Windows WhatsApp session-store DSN handling for SQLite init and lookup paths
Agent-Logs-Url: https://github.com/chz160/openmessage/sessions/86acf90b-56f8-45a6-934b-c55cd4979791

Co-authored-by: chz160 <3420276+chz160@users.noreply.github.com>
…-platform warnings

Agent-Logs-Url: https://github.com/chz160/openmessage/sessions/86acf90b-56f8-45a6-934b-c55cd4979791

Co-authored-by: chz160 <3420276+chz160@users.noreply.github.com>
…ning

Gate iMessage local sync to macOS in `serve` to eliminate unsupported-platform warnings
Agent-Logs-Url: https://github.com/chz160/openmessage/sessions/6b76c7c4-32a9-4608-9343-1576c96fec7b

Co-authored-by: chz160 <3420276+chz160@users.noreply.github.com>
Keep existing Platforms entrypoint accessible in web UI
…ormat

fix: WhatsApp group conversations showing raw JID as name
Agent-Logs-Url: https://github.com/chz160/openmessage/sessions/a58e6320-ec26-4c07-8b30-972656dcbd8a

Co-authored-by: chz160 <3420276+chz160@users.noreply.github.com>
Agent-Logs-Url: https://github.com/chz160/openmessage/sessions/1c368499-860a-4116-846b-1c47ced45e1d

Co-authored-by: chz160 <3420276+chz160@users.noreply.github.com>
Agent-Logs-Url: https://github.com/chz160/openmessage/sessions/1c368499-860a-4116-846b-1c47ced45e1d

Co-authored-by: chz160 <3420276+chz160@users.noreply.github.com>
Agent-Logs-Url: https://github.com/chz160/openmessage/sessions/1c368499-860a-4116-846b-1c47ced45e1d

Co-authored-by: chz160 <3420276+chz160@users.noreply.github.com>
Agent-Logs-Url: https://github.com/chz160/openmessage/sessions/7856c62b-249f-43c0-b96d-e01676aba727

Co-authored-by: chz160 <3420276+chz160@users.noreply.github.com>
Agent-Logs-Url: https://github.com/chz160/openmessage/sessions/b7edb072-e887-4999-9c89-742a5ce51124

Co-authored-by: chz160 <3420276+chz160@users.noreply.github.com>
Copilot AI and others added 4 commits May 11, 2026 04:45
Agent-Logs-Url: https://github.com/chz160/openmessage/sessions/33e37296-e1f2-4d84-9338-f6249ac2433a

Co-authored-by: chz160 <3420276+chz160@users.noreply.github.com>
Agent-Logs-Url: https://github.com/chz160/openmessage/sessions/33e37296-e1f2-4d84-9338-f6249ac2433a

Co-authored-by: chz160 <3420276+chz160@users.noreply.github.com>
Agent-Logs-Url: https://github.com/chz160/openmessage/sessions/a8d8a620-8381-49bf-a5ab-20366d4353c9

Co-authored-by: chz160 <3420276+chz160@users.noreply.github.com>
Add voice-message transcript persistence and fix newest-N conversation range queries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants