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.

chore(agents): hide Open/Merged/Closed labels on agents list rows (#6849)

Wolf Mermelsteinb5db96a79826
diff --git a/apps/web/src/features/agents-view/components/AgentSessionCodeDetails.tsx b/apps/web/src/features/agents-view/components/AgentSessionCodeDetails.tsx
index 84fa7fa339..38430aaa66 100644
--- a/apps/web/src/features/agents-view/components/AgentSessionCodeDetails.tsx
+++ b/apps/web/src/features/agents-view/components/AgentSessionCodeDetails.tsx
@@ -67,9 +67,6 @@ export function AgentSessionCodeDetails(props: {
/>
</Show>
<span class="tabular-nums">#{pr().number}</span>
- <Show when={statusLabel()}>
- <span class={statusClass()}>{statusLabel()}</span>
- </Show>
</a>
)}
</Show>
diff --git a/apps/web/src/features/agents-view/components/AgentsSidebar.test.tsx b/apps/web/src/features/agents-view/components/AgentsSidebar.test.tsx
index 057455e6dc..b1447a76d1 100644
--- a/apps/web/src/features/agents-view/components/AgentsSidebar.test.tsx
+++ b/apps/web/src/features/agents-view/components/AgentsSidebar.test.tsx
@@ -280,7 +280,8 @@ describe.each(['home', 'sidebar'] as const)('%s agent rows', (surface) => {
);
expect(pr.closest('button')).toBeNull();
expect(view.container.querySelector('[data-kind="code"]')).toBeTruthy();
- expect(screen.getByText('Open')).toBeTruthy();
+ expect(screen.getByText('#42')).toBeTruthy();
+ expect(screen.queryByText('Open')).toBeNull();
fireEvent.mouseDown(pr, { button: 0, detail: 1 });
fireEvent.click(pr);
expect(open).not.toHaveBeenCalled();
@@ -293,7 +294,13 @@ describe.each(['home', 'sidebar'] as const)('%s agent rows', (surface) => {
pullRequestUrl: 'https://github.com/macro-inc/macro/pull/42',
pullRequestState: 'merged',
});
- expect(screen.getByText('Merged')).toBeTruthy();
+ expect(
+ screen.getByRole('link', {
+ name: 'Open pull request #42, Merged on GitHub',
+ })
+ ).toBeTruthy();
+ expect(screen.getByText('#42')).toBeTruthy();
+ expect(screen.queryByText('Merged')).toBeNull();
expect(screen.queryByText('Open')).toBeNull();
});
diff --git a/docs/AGENT_GUIDE/ai-chat.md b/docs/AGENT_GUIDE/ai-chat.md
index eb1ccc4397..f34ade5250 100644
--- a/docs/AGENT_GUIDE/ai-chat.md
+++ b/docs/AGENT_GUIDE/ai-chat.md
@@ -40,10 +40,11 @@ permission failures should display a failed tool call without a successful resul
shows the same three-dot working wave as the transcript in place of the
leading icon; the row's accessible name appends `Starting` or `Working`.
Sessions with a linked PR show
- **View PR #<number> in GitHub** beneath the title; clicking it opens the synced
+ **#<number>** beneath the title (icon colored by open / merged / closed; no
+ status word). Clicking it opens the synced
GitHub PR entity in a split (the same destination as the session header chip
and Magic Chip). Until GitHub has synced the entity it opens GitHub in a new
- tab. Either click leaves the session unopened. The leading icon reflects the PR status. Changing the composer mode does not filter the sidebar.
+ tab. Either click leaves the session unopened. Changing the composer mode does not filter the sidebar.
Selecting a row opens its own mode; Shift-click opens it in a new split.
Right-click (or long-press on mobile) opens the same entity menu as Home:
Rename, Favorite, Copy link, Share, Delete, and the other session actions.