Skip to content

Commit 143b1bc

Browse files
fix(actors): Match TIP pilot by Actor full name across environments (#1476)
TIP pilot matched only the production Actor ID, so staging (different ID, same `apify/rag-web-browser`) never loaded tips. - Also match on full name `apify/rag-web-browser` (clones still excluded) --------- Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 88cbc3e commit 143b1bc

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎src/tools/actors/actor_run_response.ts‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
HELPER_TOOLS,
99
KV_KEYS_LIMIT,
1010
NARROW_OUTPUT_HINT,
11+
RAG_WEB_BROWSER,
1112
TIP_MESSAGE_LIMIT,
1213
} from '../../const.js';
1314
import { buildActorRunWidgetMeta } from '../../resources/widgets.js';
@@ -27,9 +28,6 @@ import { DEFAULT_DATASET_ITEMS_LIMIT } from '../storage/get_dataset_items.js';
2728
/** Reserved key-value store key some Actors use to advertise advisory guidance about the run. */
2829
const TIP_KVS_KEY = 'TIP';
2930

30-
/** Limit the TIP pilot to RAG Web Browser, including calls made by Actor ID. */
31-
const RAG_WEB_BROWSER_ID = '3ox4R101TgZz67sLr';
32-
3331
/** nextStep text for widget-rendered responses: suppresses LLM polling. */
3432
export const WIDGET_NO_POLL_NEXT_STEP =
3533
'Widget is rendering live progress. Do NOT poll — the widget self-updates until completion.';
@@ -974,7 +972,7 @@ export async function fetchActorRunData(params: {
974972

975973
const defaultKv = keyValueStores?.default;
976974
const tip =
977-
isTerminal && run.actId === RAG_WEB_BROWSER_ID && defaultKv
975+
isTerminal && defaultKv && actorName === RAG_WEB_BROWSER
978976
? await fetchRunTip(client, defaultKv, mcpSessionId)
979977
: undefined;
980978

0 commit comments

Comments
 (0)