Skip to content

feat(chat): show voice gateway calls and outside call requests - #9

Merged
cheetahbyte merged 4 commits into
mainfrom
voice-calls
Nov 10, 2026
Merged

cheetahbyte merged 4 commits into
mainfrom
voice-calls

Conversation

@cheetahbyte

Copy link
Copy Markdown
Contributor

Summary

Bot chats on iOS and macOS show voice gateway calls and outside call requests, matching the web client.

  • Spoken messages: a spoken message reads "Spoken on a call" under its bubble.
  • Call markers: a call's start and end show as centred phone markers. A call the bot placed reads "{bot} called you" with its greeting.
  • Call requests: a call request is a card to approve or decline. Each outside call is one card with its outcome, and it opens the goal, the opening and the transcript. On macOS, selecting an open job or call card again closes it.
  • Contract copy: apfelkern copies the bot contract from a directory (scripts/contract.py --update DIRECTORY). Pins, checksum manifests, release downloads and the weekly update workflow are removed, because bot no longer publishes contract releases.

Server side: crumble-project/bot#133.

Evidence

The apfelkern workflow passed on 19d8a1c. The branch adds macos/Tests/CrumbleTests/CallRequestTests.swift. The iOS and macOS workflows hadn't run on the branch before this PR.

Risk and rollback

Reversibility: Reversible

Blast radius: The bot chat on iOS and macOS, and the contract update tooling. Call features need a server with crumble-project/bot#133. Against an older server, the new fields are absent and nothing call-related shows.

scripts/contract.py --update DIRECTORY copies the contract files from a directory such as bot/openapi. Remove pin.json, the checksum manifest, release downloads, and the weekly update workflow, because bot no longer publishes contract releases. The CI check that generated code matches the contract stays.
A spoken message reads "Spoken on a call" under its bubble on iOS and
macOS. A call's start and end show as centred phone markers: a call the
bot placed reads "{bot} called you" with its greeting, and the "Call
ended" notice that wakes the bot shows the bot's reaction instead of a
typed message that can be replied to.

apfelkern copies the bot contract with the voice gateway and carries the
new call field into the chat message.
Bot chats on iOS and macOS show a call request as a card to approve or
decline, each outside call as one card with its outcome, and the call's
goal, opening, and transcript. On macOS, selecting an open job or call
card again closes it.
The cache key covered only the Xcode project and Package.resolved, so a
contract update restored an old cache, recompiled apfelkern's generated
client on every run, and never saved a fresh cache. The iOS build on
this branch hit the 5-minute timeout while still compiling. apfelkern's
manifest and sources are now in the key, with a prefix fallback, and the
build gets 10 minutes so the one cold build after a contract update fits.
@cheetahbyte
cheetahbyte merged commit 7104fcd into main Nov 10, 2026
5 checks passed
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.

1 participant