Commit 44b3ac3
committed
fix(linear): skip uploads.linear.app images in description pre-fetch
Markdown image URLs from Linear's CDN (`uploads.linear.app`) require the
workspace's OAuth token to fetch — the orchestrator's URL-resolver runs
unauthenticated and was 401ing, killing every Linear-with-image task
before the agent ever started:
Hydration failed: AttachmentResolutionError: URL attachment fetch
failed with status 401: https://uploads.linear.app/…
Filter Linear-hosted URLs out of the pre-fetch list. The agent picks
these up at runtime via `mcp__linear-server__extract_images` (which
mints fresh signed URLs the agent can fetch with `WebFetch`), so
removing them from the pre-fetch path doesn't lose coverage — it just
shifts the fetch from "Lambda with no auth" to "agent with the OAuth
token."
Trade-off: those bytes skip the input-Guardrail screening pass that
runs at task-creation time. The description text is still screened.
(cherry picked from commit f3bcc8e)1 parent d41ecad commit 44b3ac3
2 files changed
Lines changed: 63 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1133 | 1133 | | |
1134 | 1134 | | |
1135 | 1135 | | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
1136 | 1150 | | |
1137 | 1151 | | |
1138 | 1152 | | |
1139 | 1153 | | |
1140 | 1154 | | |
1141 | 1155 | | |
| 1156 | + | |
1142 | 1157 | | |
1143 | 1158 | | |
1144 | 1159 | | |
1145 | 1160 | | |
1146 | 1161 | | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
1147 | 1166 | | |
1148 | 1167 | | |
1149 | 1168 | | |
1150 | | - | |
| 1169 | + | |
1151 | 1170 | | |
1152 | 1171 | | |
| 1172 | + | |
1153 | 1173 | | |
1154 | 1174 | | |
1155 | 1175 | | |
1156 | 1176 | | |
1157 | 1177 | | |
1158 | 1178 | | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
1159 | 1188 | | |
1160 | 1189 | | |
1161 | 1190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
511 | 544 | | |
512 | 545 | | |
513 | 546 | | |
| |||
0 commit comments