## Thinking Path
> - Paperclip is the open source app people use to manage AI agents for
work
> - Connectors let agents use outside apps, such as Google Workspace.
The company Activity page records each connector event.
> - #22630 gave Google Workspace actions readable names on the Review
and Permissions tabs.
> - The Activity page still showed internal names. A Gmail call read
"used mcp google workspace 7f3c2a10 gmail get message on". The short ID
in that text comes from the connection ID.
> - Some connector rows also showed raw event names or entity types,
such as "tool connection content deleted" or "tool_application".
> - Users must not see internal names or IDs. Google's app reviewers
will also look at this page.
> - This pull request makes these Activity rows use the same readable
action name as the other pages, and plain sentences for connection
events.
> - The benefit is that people and reviewers can read what each
connector event did.
## Linked Issues or Issue Description
Refs #22630
**What happened?**
On the company Activity page (Apps & tools filter), connector rows
showed internal names. A Google tool call read "used mcp google
workspace 7f3c2a10 gmail get message on". An app removal read "tool
application archived tool_application". Stored content deletion read
"tool connection content deletion requested". Connection removal did not
say what happened to Google access.
**Expected behavior**
Each row reads as a plain sentence. Google actions use the readable name
from the Permissions page, for example "used Gmail: Get message on the
connection". No row shows a `service__tool` name, an underscore name or
an ID in its main text.
**Steps to reproduce**
1. Connect Google Workspace and let an agent read a Gmail message.
2. Remove the connection.
3. Open Activity and pick "Apps & tools".
**Paperclip version or commit**
master at 624a78fd5d.
## What Changed
- `ui/src/lib/activity-format.ts`: tool call rows now name the action
from `upstreamToolName` first, then the gateway name without its
`mcp.<app>-<id>.` namespace. They use `googleWorkspaceToolTitle` from
`packages/shared`, the same helper as `actionLabel` on the Permissions
page. A `toolTitle` in the details wins when it is there. Other tools
keep the old readable fallback.
- New verbs for `tool_gateway.call_failed` ("could not use"),
`tool_gateway.call_deferred` ("could not finish using"),
`tool_application.archived` ("removed"),
`tool_connection.content_deletion_requested`,
`tool_connection.content_deleted`, `issue.connection_content_deleted`
and `issue.connection_content_deletion_incomplete`.
- New `formatActivityEntityLabel`: an app removal shows the app name
(for example "Google Workspace"). A connection removal with a Google
access result says "the Google Workspace connection". Other entity types
read as words ("a run", "the organization") instead of the raw type.
- New `formatActivityOutcome`: an app removal says "Its last connection
was removed."
- A connection removal or a credential revocation says what happened to
Google access. The feed uses `googleAccessRemovalNotice`, the same text
as the removal toast, for example "Paperclip's access to this Google
account was also ended at Google."
- `ui/src/pages/audit/AuditFeed.tsx`: the row uses these labels and
shows the outcome sentence under the main line.
- No API, schema or server change.
| Row | Before | After |
| --- | --- | --- |
| Tool call completed | used mcp google workspace 7f3c2a10 gmail get
message on the connection | used Gmail: Get message on the connection |
| Tool call denied | was blocked from using mcp google workspace
7f3c2a10 gmail get message on | was blocked from using Gmail: Get
message on |
| Approval requested | asked to use mcp google workspace 7f3c2a10 gmail
get message on | asked to use Gmail: Get message on |
| Tool call failed | tool gateway call failed | could not use Gmail: Get
message on (only the gateway name: could not use gmail get message on) |
| Tool call deferred | tool gateway call deferred | could not finish
using Gmail: Get message on |
| Connection removed | removed the connection | removed the Google
Workspace connection. Paperclip's access to this Google account was also
ended at Google. |
| App removed | tool application archived tool_application | removed
Google Workspace. Its last connection was removed. |
| Content deletion asked | tool connection content deletion requested
the connection | asked to delete stored content from the connection |
| Content deleted | tool connection content deleted the connection |
deleted stored content from the connection |
| Task content deleted | issue connection content deleted PAP-1 |
deleted connected app content from PAP-1 |
## Verification
- Red, then green: `ui/src/lib/activity-format.test.ts` (new "connected
app activity" tests) and `ui/src/pages/audit/AuditFeed.test.tsx` ("shows
connected Google activity as plain sentences without internal names or
IDs"). The rows use real UUIDs and a real gateway tool name. The feed
test renders 11 connector rows. It checks that the main text of each row
has no `__`, no underscore name, no UUID and no short connection ID.
- Before the fix: 7 tests failed, for example `expected 'used mcp google
workspace 7f3c2a10 gm…' to be 'used Gmail: Get message on'`.
- After the fix: `npx vitest run src/lib/activity-format.test.ts
src/pages/audit/` passes (69 tests).
- `pnpm --filter @paperclipai/ui typecheck` passes.
- `pnpm verify` selected 2,983 of 3,857 Vitest files (conservative
selection for a `ui/src/lib` change). I stopped it and use required CI
for broad coverage.
## Risks
- Low risk. Only display text in the Activity feed changes.
- The small mono action name on each row (for example
`tool_gateway.call_completed`) stays. `DESIGN.md` principle 6 says
machine values use the monospace style. Nothing marks it as a debug-only
item.
- `AuditFeed.production.tsx` (the old design snapshot that
`AgentDetail.production` uses) gets the new verbs but keeps its own
entity text. This change does not edit that snapshot.
## Model Used
- Claude Opus 5.5 (`claude-opus-5-5`), in Claude Code with tool use
(shell, file edit, test runs).
## Checklist
- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [ ] All Paperclip CI gates are green
- [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@paperclipai/ui
Published static assets for the Paperclip board UI.
What gets published
The npm package contains the production build under dist/. It does not ship the UI source tree or workspace-only dependencies.
Storybook
Storybook config, stories, and fixtures live under ui/storybook/.
pnpm --filter @paperclipai/ui storybook
pnpm --filter @paperclipai/ui build-storybook
Typical use
Install the package, then serve or copy the built files from node_modules/@paperclipai/ui/dist.
Editor dependency identity
Keep the root and workspace overrides for @codemirror/state,
@codemirror/view, and @lezer/common aligned. CodeMirror requires shared
extension identity, while Lezer parsers and syntax highlighters require shared
NodeProp IDs. Multiple Lezer copies can crash code-block highlighting with
tags is not iterable. src/lib/codemirror-single-instance.test.ts checks the
installed dependency graph and highlights sample code through the editor's real
language dependencies. GitHub Actions owns regeneration of pnpm-lock.yaml.