feat(form): audio field — native playback in dialogs (#25) - #151
Merged
Conversation
Adds an `audio` field kind to the `form` MCP tool, rendering a native `<audio controls>` player for reviewing TTS samples, voice memos, or generated sound clips (#25). Mirrors the existing video handling: a local audio path (mp3/m4a/wav/aac/ogg/flac) is routed through the same size-unbounded /media cache the gallery tool uses for video, never the 10 MB data:-URL inliner, so it works identically whether the agent runs locally or on a remote SSH host. Both bridges implement the same routing to avoid behavioral drift: - companion/src-tauri: imageresolve (path/ext detection + collection), mcp.rs (media upload wiring, tool description), http.rs (known field kind), dialog.rs (window size estimate) - python/src/aiui_mcp/server.py: mirrored upload/collect helpers and tool docstring Documents the new field in docs/skill.md and the Python package's bundled skill.md, and records the change in CHANGELOG.md.
iret77
force-pushed
the
feat/issue-25-audio-playback
branch
from
August 1, 2026 10:09
7ba749c to
4d749c3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Neues
audio-Formularfeld: natives<audio controls>, lokale Dateien über denselben größenunbegrenzten/media-Cache wie Video (mp3/m4a/wav/aac/ogg/flac).upload_medianimmt jetzt einen explizitenext-Parameter (Video+Audio geteilt). Rust- + Python-Bridge konsistent.Build: Rust 139✓, clippy✓, FE grün, Python 38✓. Mac-E2E offen: Playback im WebView, /media-Roundtrip lokal+remote.
Closes #25
Batch-Kontext: Teil eines 6-PR-Sets (#141, #146, #23, #24, #25, #17) aus parallelen Sub-Sessions, das zusammen einen Release ergibt.
mainrebased (Hotspots:mcp.rs,http.rs,skill.md,CHANGELOG.md,server.py).main; Merge via PR (AGENTS.md). CI baut/testet; interaktives Dialog-E2E nur am Mac verifizierbar.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.