Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

bugfix(agents): pr text clobbers (#6409)

Wolf Mermelsteina219a72142ac
diff --git a/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/MagicChipPullRequest.tsx b/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/MagicChipPullRequest.tsx
index 52e7dc2e50..aa4cd4d8e1 100644
--- a/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/MagicChipPullRequest.tsx
+++ b/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/MagicChipPullRequest.tsx
@@ -33,7 +33,8 @@ export const MagicChipPullRequest: Component<{ url: string }> = (props) => {
href={props.url}
target="_blank"
rel="noreferrer"
- class="inline-flex min-w-0 shrink-0 items-center gap-1 rounded-xs px-1 py-0.5 text-ink-muted hover:bg-hover hover:text-ink"
+ title={reference() ? prDisplayName(reference()!) : 'Pull request'}
+ class="inline-flex min-w-0 max-w-full items-center gap-1 rounded-xs px-1 py-0.5 text-ink-muted hover:bg-hover hover:text-ink"
data-magic-chip-pull-request={props.url}
onClick={(event) => event.stopPropagation()}
>
@@ -47,7 +48,7 @@ export const MagicChipPullRequest: Component<{ url: string }> = (props) => {
{(entity) => (
<PullRequestEntityLink
entity={entity()}
- class="shrink-0 text-ink-muted hover:text-ink"
+ class="max-w-full text-ink-muted hover:text-ink"
/>
)}
</Show>
diff --git a/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/MagicChipView.tsx b/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/MagicChipView.tsx
index b98fff0bed..268356aa2f 100644
--- a/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/MagicChipView.tsx
+++ b/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/MagicChipView.tsx
@@ -197,7 +197,7 @@ const ChipHeader: Component<{
>
<button
type="button"
- class="flex min-w-0 flex-1 items-center gap-1.5 rounded-md text-left text-ink-extra-muted"
+ class="flex min-w-0 flex-1 items-center gap-1.5 overflow-hidden rounded-md text-left text-ink-extra-muted"
classList={{ 'hover:text-ink': Boolean(props.onOpen) }}
data-message-reply-preview={props.preview}
disabled={!props.onOpen}
@@ -230,7 +230,11 @@ const ChipHeader: Component<{
<ActivityText activity={props.status} />
</button>
<Show when={props.header?.pullRequestUrl}>
- {(url) => <MagicChipPullRequest url={url()} />}
+ {(url) => (
+ <div class="flex min-w-0 max-w-[40%] justify-end overflow-hidden">
+ <MagicChipPullRequest url={url()} />
+ </div>
+ )}
</Show>
<Show when={props.onCollapse}>
<Button
diff --git a/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/PullRequestMention.tsx b/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/PullRequestMention.tsx
index ac547d7548..294c576a4d 100644
--- a/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/PullRequestMention.tsx
+++ b/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/PullRequestMention.tsx
@@ -509,6 +509,7 @@ export function PullRequestEntityLink(props: {
return (
<HoverCard
+ triggerClass="min-w-0 max-w-full"
trigger={
<button
type="button"
diff --git a/docs/AGENT_GUIDE/channels.md b/docs/AGENT_GUIDE/channels.md
index 606e9611f9..9ea777a1cd 100644
--- a/docs/AGENT_GUIDE/channels.md
+++ b/docs/AGENT_GUIDE/channels.md
@@ -115,7 +115,8 @@ editor visible.
When Cursor opens a pull request, the chip header shows its GitHub link as soon
as the run reports it, including after restoring a session. The link remains
usable while the webhook mapping is loading or absent, then becomes a Macro PR
-entity link once synced.
+entity link once synced. On narrow chips, long PR names truncate with an
+ellipsis; hover the link to inspect the full title.
When the agent stops to ask a question the question takes the area in the passage's
place, cropped and expandable the same way: the prompt, then what is asked - a form's