[Bug]: MCP App inline frames never go below 80px, so compact apps get blank space under them
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- Ein halber Tag
- Anfängerfreundlichkeit
- 68/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- frontend
Rechercherichtung
Beginne mit clampMcpAppHeight in packages/shared/src/mcpApp.ts und prüfe dann, wie McpAppFrame.tsx und mcpAppInlineHeight in der mobilen App den Clamp verwenden. Prüfe vor einer Änderung des Verhaltens der Mindesthöhe auf zugehörige Tests. Fertig ist es, wenn eine gemeldete Höhe von 48px kompakte Inline-Apps ohne die aktuelle Untergrenze von 80px rendern kann und der Standardwert weiterhin gilt, bevor eine Größe gemeldet wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
- Connect an MCP server whose tool declares an MCP App (
_meta.ui.resourceUri→text/html;profile=mcp-app). - Make the app render a compact single-row view (for example a one-line "receipt" of the tool call, about 40–50px tall) and report it after
ui/notifications/initialized:{ "jsonrpc": "2.0", "method": "ui/notifications/size-changed", "params": { "height": 48 } } - Have the agent call the tool a few times in a row so several app cards stack in the timeline.
Expected behavior
The inline iframe follows the height the app reports (48px here), so a series of one-line cards stacks tightly, like normal tool-call rows.
Actual behavior
Every inline iframe is at least 80px tall. The app's content sits at the top and the rest stays blank, so each card carries roughly 30–40px of empty space under it and a run of tool calls is spread far apart.
The floor comes from clampMcpAppHeight in packages/shared/src/mcpApp.ts:
const MCP_APP_MIN_HEIGHT = 80;
export const MCP_APP_DEFAULT_HEIGHT = 320;
export function clampMcpAppHeight(height: number): number {
if (!Number.isFinite(height)) return MCP_APP_DEFAULT_HEIGHT;
return Math.round(Math.min(MCP_APP_MAX_HEIGHT, Math.max(MCP_APP_MIN_HEIGHT, height)));
}
McpAppFrame.tsx applies it to every size-changed (setHeight(clampMcpAppHeight(size.height))), and mobile's mcpAppInlineHeight uses the same clamp. The app has no way to get below 80px; centering the content in the frame only moves the blank space around.
A floor makes sense before the app has reported anything (the 320px default covers that). Once an app has measured itself, a small floor (or none beyond a positive height) would let compact apps render at their real size.
Impact
Cosmetic issue
Version or commit
Desktop 0.1.9; source checked at main @ 6f108e8
Environment
macOS, T3 Code desktop app 0.1.9
Workaround
None on the app side. Apps can only make their content at least 80px tall to fill the frame.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 24.8k
- Forks
- 6.4k
- Ø Merge
- 59 Min.
- Gemergte PRs (30 T.)
- 418
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus pingdotgg/t3code
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 1 Tag
-
via-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug]: Settings inheritance popover shows raw slugs for branch naming, default permissions and response streamingEvtl. vergeben @juliusmarminge hat das vor 1 Tag übernommen. Offenvouch:denounced
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug]: Message navigation minimap shows a visible vertical track line on custom themes with an opaque border colorEvtl. vergeben @ixmxvii-hash hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in pingdotgg/t3code
Ähnliche Issues
-
Resources: Update work of urumqiEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
railmapgen/rmp-gallery#4176 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
GraphQL custom headers duplicate differently cased default headersEvtl. vergeben @yxr-2025 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
elie222/rakazo#4625 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement sharing & sync
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 62/100
Maintainer antworten meist innerhalb von 1 Tag
-
[Adapter] Magic HourOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
HelpCode-ai/anythingmcp#1659 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag