fix(claude): surface usage-limit pauses #6639
Closed
flamboh(GitHub profile, opens in a new tab)wants to merge 1 commit into
main fromrefs/pull/6639/head·opened View on GitHubShowing 20 changed files with 90 additions and 0 deletions (loading 17).
x
21 additions and 0 deletions+21-0apps/mobile/src/features/threads/ThreadComposer.tsxModifiedView file
@@ -37,6 +37,7 @@
+import { readUsageLimit, usageLimitPresentation } from "./usageLimitPresentation";
@@ -288,6 +289,10 @@
+ const usageLimit = readUsageLimit(
+ (props.selectedThread.session as { usageLimit?: unknown } | null | undefined)?.usageLimit,
+ );
+ const usageLimitCopy = usageLimit ? usageLimitPresentation(usageLimit) : null;
@@ -715,6 +720,22 @@
+ {usageLimitCopy ? (
Thread on line 723
🟡 Medium threads/ThreadComposer.tsx:723
When usageLimitCopy is present, the banner increases the rendered composer height without increasing ThreadDetailScreen's composerOverlapHeight, so the banner extends beyond the reserved inset and covers the final feed content; longer or localized copy makes the overlap larger. Report or measure the banner's height, or include it in the parent inset calculation.
🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/mobile/src/features/threads/ThreadComposer.tsx around line 723:
When `usageLimitCopy` is present, the banner increases the rendered composer height without increasing `ThreadDetailScreen`'s `composerOverlapHeight`, so the banner extends beyond the reserved inset and covers the final feed content; longer or localized copy makes the overlap larger. Report or measure the banner's height, or include it in the parent inset calculation.
+ <View
+ accessibilityRole="alert"
+ className="mb-2 flex-row items-start gap-2 rounded-2xl border border-red-500/30 bg-red-500/10 px-3 py-2"