Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(claude): surface usage-limit pauses #6639

Closedflamboh(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/6639/headopened View on GitHub

Showing 20 changed files with 90 additions and 0 deletions (loading 17).

x
0 of 20 viewed, 20 left
21 additions and 0 deletionsapps/mobile/src/features/threads/ThreadComposer.tsxModified
View file
@@ -37,6 +37,7 @@
import { useThemeColor } from "../../lib/useThemeColor";
import { armAgentAwarenessLiveActivityForLocalWork } from "../agent-awareness/remoteRegistration";
import { scopedThreadKey } from "../../lib/scopedEntities";
+import { readUsageLimit, usageLimitPresentation } from "./usageLimitPresentation";
​
import { AppText as Text } from "../../components/AppText";
import { ComposerAttachmentStrip } from "../../components/ComposerAttachmentStrip";
@@ -288,6 +289,10 @@
// while focus moves between its native editor and the settings picker.
const isExpanded = isFocused || settingsSheetPresentation.isActive;
const canSend = hasContent;
+ const usageLimit = readUsageLimit(
+ (props.selectedThread.session as { usageLimit?: unknown } | null | undefined)?.usageLimit,
+ );
+ const usageLimitCopy = usageLimit ? usageLimitPresentation(usageLimit) : null;
​
// Notify the parent from the derived value, not focus events: the parent
// sizes the feed inset from this, and blur-during-sheet would otherwise
@@ -715,6 +720,22 @@
layout={COMPOSER_LAYOUT_TRANSITION}
style={{ maxWidth: props.contentMaxWidth }}
+ {usageLimitCopy ? (
Thread on line 723
macroscopeapp[bot](GitHub profile, opens in a new tab)commented

🟡 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"