Dataset Viewer
Auto-converted to Parquet Duplicate
ts
stringlengths
24
24
kind
stringclasses
1 value
pattern_id
stringclasses
4 values
slug
stringclasses
4 values
severity
int64
3
8
confidence
float64
0.7
0.7
verification
stringclasses
1 value
repo
stringlengths
9
50
path
stringlengths
6
84
url
stringlengths
87
171
sha
stringlengths
40
40
excerpt
stringlengths
33
400
hunt_query
stringclasses
16 values
catalog_version
stringclasses
10 values
source
stringclasses
2 values
2026-05-18T16:54:27.450Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
fccview/jotty
proxy.ts
https://github.com/fccview/jotty/blob/fcfd25de2766eb2f321f643efc2f36d1c01dfe13/proxy.ts
67ecb2e4ff05049215defb2cb9b5bd350551e7cf
: request.nextUrl.origin; const loginUrl = new URL(`${appUrlBase}/auth/login`); if (!sessionId) { return NextResponse.redirect(loginUrl); }
if (!sessionId)
1.0.0
null
2026-05-18T16:54:27.450Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
lucia-auth/examples
hono/github-oauth/index.ts
https://github.com/lucia-auth/examples/blob/9ad506ceef68eca4dfd691c4d84336564c7370b3/hono/github-oauth/index.ts
1722ca17c38df3ba9d5d8ed8bc59386a6e5e9586
app.use("*", async (c, next) => { const sessionId = lucia.readSessionCookie(c.req.header("Cookie") ?? ""); if (!sessionId) { c.set("user", null); c.set("session", null); return next();
if (!sessionId)
1.0.0
null
2026-05-18T16:54:27.450Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
orthdron/subatic
lib/auth.ts
https://github.com/orthdron/subatic/blob/bbe3f9878e8b3ee3941fb6b4a6f137b7884db638/lib/auth.ts
04b1836a6739fc68a6f20c11f67e958a73b43c51
export const validateRequest = cache( async (): Promise<{ user: User; session: Session } | { user: null; session: null }> => { const sessionId = (await cookies()).get(lucia.sessionCookieName)?.value ?? null; if (!sessionId) { return { user: null, session: ...
if (!sessionId)
1.0.0
null
2026-05-18T16:54:27.450Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
kitfunso/hippo-memory
src/store.ts
https://github.com/kitfunso/hippo-memory/blob/51770ca754a1961030152c8900e2653feb21add7/src/store.ts
b8913f31ebea690fab941b47827de7963043dedf
): MemoryEntry[] { if (!sessionId) return []; initStore(hippoRoot);
if (!sessionId)
1.0.0
null
2026-05-18T16:54:27.450Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
yogirk/agent-council
src/council.ts
https://github.com/yogirk/agent-council/blob/f6d1e1ad9c6597c03e7922f2bae41c73b7b760b2/src/council.ts
359618ec2030fb9addc6e2a1443e011d46568143
const sessionId = args[1]; if (!sessionId) { console.error("Usage: council replay <session-id>");
if (!sessionId)
1.0.0
null
2026-05-18T16:54:27.450Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
rattin-player/rattin-public
routes/rc.ts
https://github.com/rattin-player/rattin-public/blob/7f2731d4c29cc25d6053c82fa692c2caec7ec40a/routes/rc.ts
75a5b31f2c2724f2de1ea2658837d600a4b25727
options: { notFoundError: string }, ): { sessionId: string; session: RCSession } | null { const sessionId = getRcSessionId(req); if (!sessionId) { res.status(400).json({ error: "sessionId required" }); return null; }
if (!sessionId)
1.0.0
null
2026-05-18T16:54:27.450Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
Dicklesworthstone/brenner_bot
brenner.ts
https://github.com/Dicklesworthstone/brenner_bot/blob/f08d7e024270be76249df29c20cd354c1e02fe51/brenner.ts
e8c81d9176483debc9407b6a8c4cd10d847f4001
const sessionId = transition.sessionId ?? extractSessionIdFromHypothesisId(transition.hypothesisId); if (!sessionId) return;
if (!sessionId)
1.0.0
null
2026-05-18T16:54:27.450Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
AppiumTestDistribution/appium-interceptor-plugin
src/plugin.ts
https://github.com/AppiumTestDistribution/appium-interceptor-plugin/blob/54899335c24a87ebef4404cc9871bfb49945f09e/src/plugin.ts
3eff09927bca2842a6dfa2e80b272cd01c11d4a9
} if (!adb) throw log.errorWithException('Proxy setup failed: ADB instance is missing.'); if (!sessionId) throw log.errorWithException('Proxy setup failed: Session ID is missing.'); if (!deviceUDID) throw log.errorWithException('Proxy setup failed: Device UDID is missing.'); try {
if (!sessionId)
1.0.0
null
2026-05-18T16:54:27.450Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
Ankit-Silwal/Coursecrash_frontend
middleware.ts
https://github.com/Ankit-Silwal/Coursecrash_frontend/blob/eb94094ffc482221c4d9fc43d5f4e170ac68143a/middleware.ts
42af2fc369a81172dba27ce3ad5c5bf5e13af603
// Get the sessionId from cookies const sessionId = request.cookies.get('sessionId')?.value if (!sessionId) { // Redirect to regular login page for all protected routes return NextResponse.redirect(new URL('/login', request.url)) }
if (!sessionId)
1.0.0
null
2026-05-18T16:54:27.450Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
futuritywork/github-discord-webhook
rpc/base.ts
https://github.com/futuritywork/github-discord-webhook/blob/aec8e6307d24d68c2c2298272696c6f945db78d5/rpc/base.ts
ae62cb25b0bc98fe7dc36fc33ceba9437fe950b8
const authMiddleware = base.middleware(async ({ context, next }) => { const sessionId = getCookie(context.reqHeaders, SESSION_COOKIE_NAME); if (!sessionId) { throw new ORPCError("UNAUTHORIZED", { message: "Not authenticated" }); }
if (!sessionId)
1.0.0
null
2026-05-18T17:10:12.819Z
diagnosed_in_the_wild
ALEF-PAT-027
shell-true-cmd-flash
3
0.7
gh_code_search_textmatch
glowflix/LagraceLogicielPROd
print/module.js
https://github.com/glowflix/LagraceLogicielPROd/blob/ecedaba140c9122fbbda2db23f2a65672e06bae2/print/module.js
fb09dc72cf84bb5a3407f287c5e5505560095c6b
const recent = store.last.slice(-Math.max(3, DEDUPE_DEPTH)); if (recent.some(e => e.fp === fp)) return { duplicate: true, reason: "same-fingerprint" }; return { duplicate: false };
shell: true windowsHide: true
1.0.0
null
2026-05-18T17:51:12.875Z
diagnosed_in_the_wild
ALEF-PAT-001
orphan-tool-use
8
0.7
gh_code_search_textmatch
code-yeongyu/oh-my-openagent
src/plugin/messages-transform.ts
https://github.com/code-yeongyu/oh-my-openagent/blob/37bd866c32b1d140526967b51b8c8957e9daed83/src/plugin/messages-transform.ts
e301c4efcb57834d4d59af997bb17d01ffa1e975
// Isolate per-handler failures so later handlers (notably toolPairValidator) // always run. A throw here used to leave orphaned tool_use blocks in the // post-compaction payload, producing API 400s like // "tool_use ids were found without tool_result blocks immediately after". log("[messages-transf...
tool_use ids were found without tool_result
1.0.0
null
2026-05-18T17:51:12.875Z
diagnosed_in_the_wild
ALEF-PAT-001
orphan-tool-use
8
0.7
gh_code_search_textmatch
anthropics/claude-code
feed.xml
https://github.com/anthropics/claude-code/blob/2962ecd7a9477817d8a2a2b2bd40a7a96ecef3c8/feed.xml
c2ce2a688b7f921b2ea8e2659c4ff4c47729a60f
&lt;p&gt;• Clarified the /mcp message shown when an MCP server is still unauthorized after the browser sign-in flow&lt;/p&gt; &lt;p&gt;• OpenTelemetry: numeric attributes on api_request/api_error log events are now emitted as numbers, not strings&lt;/p&gt; &lt;p&gt;• OpenTelemetry: added claude_code.at_mention log even...
tool_use ids were found without tool_result
1.0.0
null
2026-05-18T17:51:12.875Z
diagnosed_in_the_wild
ALEF-PAT-001
orphan-tool-use
8
0.7
gh_code_search_textmatch
gnachman/iTerm2
AILiveHarness/AILiveHarness.swift
https://github.com/gnachman/iTerm2/blob/198908e8694ae8e7907db2e2978a856c9ae3970a/AILiveHarness/AILiveHarness.swift
b71217e4baac9d93e121d4566bccbaaafb46391d
// plain-text user message (not a tool_result for that tool_use_id) and // 400s with: // // "messages.N: tool_use ids were found without tool_result blocks // immediately after: toolu_..." // // The upstream FunctionCallID wrapper fix (92c2c3f9b) is unrelated; both
tool_use ids were found without tool_result
1.0.0
null
2026-05-18T17:51:12.875Z
diagnosed_in_the_wild
ALEF-PAT-001
orphan-tool-use
8
0.7
gh_code_search_textmatch
ag2ai/ag2
autogen/beta/agent.py
https://github.com/ag2ai/ag2/blob/ac6bdb79c05b7245fb5eba83c4cd2ba44575db9c/autogen/beta/agent.py
10e7be662bb28985a8cc1f0f4ca66b33d95c6ad2
# event, causing duplicate tool execution, racing ``set_result`` # calls on ``context.stream.get`` futures, and orphaned tool_use # records that break subsequent Anthropic turns # ("messages.N: tool_use ids were found without tool_result # blocks immediately after"). # ...
tool_use ids were found without tool_result
1.0.0
null
2026-05-18T17:51:12.875Z
diagnosed_in_the_wild
ALEF-PAT-001
orphan-tool-use
8
0.7
gh_code_search_textmatch
FlorianBruniaux/claude-code-ultimate-guide
guide/core/claude-code-releases.md
https://github.com/FlorianBruniaux/claude-code-ultimate-guide/blob/5e0ac77fd3cadd3fbdaa2fcccf5c37f3f12a1db0/guide/core/claude-code-releases.md
960f6dcc4ae259fb263b522fe90b14b8dceb0a66
- **Improved**: `/mcp` now shows claude.ai connectors hidden by a manually-added server with the same URL, with a hint to remove the duplicate - **Fixed**: `/branch` producing forks that fail with "tool_use ids were found without tool_result blocks" from rewound timelines - **Fixed**: `/model` not showing Effort option...
tool_use ids were found without tool_result
1.0.0
null
2026-05-18T17:51:12.875Z
diagnosed_in_the_wild
ALEF-PAT-001
orphan-tool-use
8
0.7
gh_code_search_textmatch
router-for-me/CLIProxyAPI
internal/translator/antigravity/claude/antigravity_claude_request.go
https://github.com/router-for-me/CLIProxyAPI/blob/ad98c9549ace5faa674483113c5f00432eb71b50/internal/translator/antigravity/claude/antigravity_claude_request.go
456475f1f7670b4fb13ef09fbcf5f83df1c66de6
// pairing breakage: the Antigravity API internally splits model messages // at functionCall boundaries. If a text part follows a functionCall, the // split creates an extra assistant turn between tool_use and tool_result, // which Claude rejects with "tool_use ids were found without tool_result // ...
tool_use ids were found without tool_result
1.0.0
null
2026-05-18T17:51:12.875Z
diagnosed_in_the_wild
ALEF-PAT-001
orphan-tool-use
8
0.7
gh_code_search_textmatch
diegosouzapw/OmniRoute
open-sse/executors/base.ts
https://github.com/diegosouzapw/OmniRoute/blob/072e38e55239ac34eab4b75285da4d8ff2845021/open-sse/executors/base.ts
94094155ba9a47ba64a01ca954e7aff73db587dc
]; // Guard against orphan tool_use / tool_result pairs. Clients can ship // truncated histories mid-tool-call which Anthropic rejects with // `messages.N: tool_use ids were found without tool_result blocks // immediately after: toolu_...`. fixToolPairs strips orphans, then ...
tool_use ids were found without tool_result
1.0.0
null
2026-05-18T17:51:12.875Z
diagnosed_in_the_wild
ALEF-PAT-001
orphan-tool-use
8
0.7
gh_code_search_textmatch
Windy3f3f3f3f/claude-code-from-scratch
docs/07-context.md
https://github.com/Windy3f3f3f3f/claude-code-from-scratch/blob/5e674776c12833edf5c8819d752416179a1d500f/docs/07-context.md
aa919c7866ca0afb89dc563514994aa300a2e5d5
``` <!-- tabs:end --> Tier 1-3 在每次 API 调用**前**运行(零 API 成本),Tier 4 在 **turn boundary 触发**——即每次用户输入 push 进消息数组后、`while` 主循环开始前。**不要**把 Tier 4 放在 tool 循环末尾:那时最后一条消息是 `{role: "user", content: [tool_result, ...]}`,`compactAnthropic` 内部的 `slice(0, -1)` 会切断它与前一条 `assistant` 消息里 `tool_use` 的配对,Anthropic API 会以 *"tool_use ids ...
tool_use ids were found without tool_result
1.0.0
null
2026-05-18T17:51:12.875Z
diagnosed_in_the_wild
ALEF-PAT-001
orphan-tool-use
8
0.7
gh_code_search_textmatch
danshapiro/kilroy
internal/llm/errors.go
https://github.com/danshapiro/kilroy/blob/b55fb0f2b3d5bfc603726d8ce5c5b89de81bfa2f/internal/llm/errors.go
e2d4c65cdb8b5614ead74e40ed0e61c98057b262
return &NotFoundError{base} case strings.Contains(lower, "unauthorized") || strings.Contains(lower, "invalid key"): return &AuthenticationError{base} case strings.Contains(lower, "tool_use ids were found without tool_result"): base.retryable = true return &ServerError{base} }
tool_use ids were found without tool_result
1.0.0
null
2026-05-18T17:51:12.875Z
diagnosed_in_the_wild
ALEF-PAT-001
orphan-tool-use
8
0.7
gh_code_search_textmatch
gsscsd/big_model_radar
digests/2026-05-09/ai-cli.md
https://github.com/gsscsd/big_model_radar/blob/058f0ff6e81f471e9c8d681ae211f9b282102611/digests/2026-05-09/ai-cli.md
d159b4a50b20616289fce03331bb782f97fae515
| [#3098](https://github.com/github/copilot-cli/issues/3098) **PowerShell `$home` 变量误操作导致用户配置文件被删除风险** | 安全高危问题,可能因变量名冲突引发数据丢失 | 1 条评论,但潜在影响严重 | | [#3205](https://github.com/github/copilot-cli/issues/3205) **Emoji 表格列对齐回归(v1.0.43)** | 此前修复未彻底,影响终端输出可读性 | 用户指出 #2764 并未真正解决 | | [#3204](https://github.com/github/copilot-c...
tool_use ids were found without tool_result
1.0.0
null
2026-05-18T18:04:04.513Z
diagnosed_in_the_wild
ALEF-PAT-004
verifier-source-mismatch
7
0.7
gh_code_search_textmatch
ceph/ceph
src/vstart.sh
https://github.com/ceph/ceph/blob/337b926b1c9fddd734a64f7a6873d90158a704c5/src/vstart.sh
27bd1502268823dfbf5defd0b89b3ba9cfc3fcf7
# Crimson doesn't support PG merge/split yet. if [ "$ceph_osd" == "crimson-osd" ]; then
WARNING: gh pr merge exited 1
1.0.0
null
2026-05-18T18:04:04.513Z
diagnosed_in_the_wild
ALEF-PAT-004
verifier-source-mismatch
7
0.7
gh_code_search_textmatch
twitter-forks/mysql
storage/innobase/srv/srv0start.c
https://github.com/twitter-forks/mysql/blob/865aae5f23e2091e1316ca0e6c6651d57f786c76/storage/innobase/srv/srv0start.c
735077579a06e06915c56a517ef58d0b0c13dd7b
ut_print_timestamp(stderr); fprintf(stderr, " InnoDB: Warning:" " innodb_file_io_threads is deprecated."
WARNING: gh pr merge exited 1
1.0.0
null
2026-05-18T18:04:04.513Z
diagnosed_in_the_wild
ALEF-PAT-004
verifier-source-mismatch
7
0.7
gh_code_search_textmatch
iii-hq/iii
crates/iii-worker/src/cli/managed.rs
https://github.com/iii-hq/iii/blob/062e6da9aaa37da5c25280962288ad8618c1e4f1/crates/iii-worker/src/cli/managed.rs
ba8c2471e754bc5b09bd97d2e03184bdfad4d38a
/// version-conflict gate. pub(crate) fn merge_resolved_graphs( graphs: Vec<(String, ResolvedWorkerGraph)>,
WARNING: gh pr merge exited 1
1.0.0
null
2026-05-18T18:04:04.513Z
diagnosed_in_the_wild
ALEF-PAT-004
verifier-source-mismatch
7
0.7
gh_code_search_textmatch
gmh5225/awesome-game-security
archive/MhmRdd/NoHello.txt
https://github.com/gmh5225/awesome-game-security/blob/348f07c0e4e09188b29162cdd43fcf246b8646b9/archive/MhmRdd/NoHello.txt
6bc3a083eed31a468a30332c6bb5e9cba39d3d84
in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
WARNING: gh pr merge exited 1
1.0.0
null
2026-05-18T18:04:04.513Z
diagnosed_in_the_wild
ALEF-PAT-004
verifier-source-mismatch
7
0.7
gh_code_search_textmatch
lilypond/lilypond
po/de.po
https://github.com/lilypond/lilypond/blob/decb8bd3fdc905f664d6866998d5dbd929b72f31/po/de.po
f367dad6484b29fd447149d410e9b29221a4c8ed
#~ msgid "~a exited with status: ~S" #~ msgstr "~a mit Rückgabewert ~S beendet"
WARNING: gh pr merge exited 1
1.0.0
null
2026-05-18T18:04:04.513Z
diagnosed_in_the_wild
ALEF-PAT-004
verifier-source-mismatch
7
0.7
gh_code_search_textmatch
NVIDIA/aistore
ais/daemon.go
https://github.com/NVIDIA/aistore/blob/372cff2ef8ad8727dc2820b7762c513d7b00f6a2/ais/daemon.go
388565ded226ed1b1fd5c80cda4b271bb27b1fea
if testingEnv { nlog.Infoln("Warning:", s) } else {
WARNING: gh pr merge exited 1
1.0.0
null
2026-05-18T18:04:04.513Z
diagnosed_in_the_wild
ALEF-PAT-004
verifier-source-mismatch
7
0.7
gh_code_search_textmatch
qt-creator/qt-creator
src/plugins/debugger/gdb/gdbengine.cpp
https://github.com/qt-creator/qt-creator/blob/8bdf2e81f001c16a3f099bd8108b2802efd4179f/src/plugins/debugger/gdb/gdbengine.cpp
5332aa5a0cd934a55f7d087994160cac6cb84298
// version and/or OS version used. if (data.startsWith("warning:")) { showMessage(data.mid(9), AppStuff); // Cut "warning: "
WARNING: gh pr merge exited 1
1.0.0
null
2026-05-18T18:04:04.513Z
diagnosed_in_the_wild
ALEF-PAT-004
verifier-source-mismatch
7
0.7
gh_code_search_textmatch
OWASP/O-Saft
o-saft.tcl
https://github.com/OWASP/O-Saft/blob/b4350981a3b14d02051d375b7bd82f77ff7b8b95/o-saft.tcl
cf32f58def1ac5f276ed79850fc55833aff1c09d
{error "**ERROR:" ::tk::icons::error } \ {warning "**WARNING:" ::tk::icons::warning } \ {hint "!!Hint:" ::tk::icons::information } \
WARNING: gh pr merge exited 1
1.0.0
null
2026-05-18T18:04:04.513Z
diagnosed_in_the_wild
ALEF-PAT-004
verifier-source-mismatch
7
0.7
gh_code_search_textmatch
tonhowtf/omniget
src-tauri/omniget-core/src/core/ytdlp.rs
https://github.com/tonhowtf/omniget/blob/2046c1ab1eb5cad5c2c067d9eaac2247ef54bb4f/src-tauri/omniget-core/src/core/ytdlp.rs
aa66edcd57ca453cf73df3df5a63f970d1624329
.lines() .find(|l| l.to_uppercase().contains("WARNING:")) .map(|l| l.trim().to_string());
WARNING: gh pr merge exited 1
1.0.0
null
2026-05-18T18:04:04.513Z
diagnosed_in_the_wild
ALEF-PAT-004
verifier-source-mismatch
7
0.7
gh_code_search_textmatch
Potpourri/Hyperborea
media-scripts/bin/merge-video-and-audio
https://github.com/Potpourri/Hyperborea/blob/ff8db63f1d3bbdf34f77af1a001379947fc280ee/media-scripts/bin/merge-video-and-audio
b5d3f49e385f9577ce67555c85a72b7613cf7989
ansi::rgb() { printf '%s38;2;%s;%s;%sm' "$ANSI_CSI" "$1" "$2" "$3" }
WARNING: gh pr merge exited 1
1.0.0
null
2026-05-18T18:06:36.684Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
opactorai/Claudable
hooks/useUserRequests.ts
https://github.com/opactorai/Claudable/blob/2634077b0eecbf5affd1a8a88fe9f5b5bafde514/hooks/useUserRequests.ts
60f124e11ff19fd4251c7d20f3173bc703199d03
const registerActiveRequest = useCallback((requestId: string | null | undefined) => { if (!requestId) return; const set = activeRequestIdsRef.current;
if (!requestId)
1.0.0
null
2026-05-18T18:06:36.684Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
estruyf/vscode-front-matter
src/commands/Preview.ts
https://github.com/estruyf/vscode-front-matter/blob/614a35a1aa8fa9dd1bacf0a0ad77fe5274555d97/src/commands/Preview.ts
5ddbc5b1a98044df7a1aa7aa4751a892466d6ba8
}); const fetchLocalization = async (requestId: string) => { if (!requestId) { return; }
if (!requestId)
1.0.0
null
2026-05-18T18:06:36.684Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
crafter-station/petdex
src/lib/ads/validation.ts
https://github.com/crafter-station/petdex/blob/693fcd1ac08e46958963124afaa4b2f4a20c448d/src/lib/ads/validation.ts
168898a772d84aa2a1fce78db853d4db9509377f
if (!sessionId) return { ok: false, error: "session_id_required" }; if (!requestId) return { ok: false, error: "request_id_required" }; if (!path?.startsWith("/")) return { ok: false, error: "path_invalid" };
if (!requestId)
1.0.0
null
2026-05-18T18:06:36.684Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
lcoutodemos/clui-cc
src/main/index.ts
https://github.com/lcoutodemos/clui-cc/blob/58d18bb7a58fbe23e70f9f025b6a167008851913/src/main/index.ts
9a7da0cd8cea981306fc67f6aaaa38e52ff66506
if (!tabId) { throw new Error('No tabId provided — prompt rejected') } if (!requestId) { throw new Error('No requestId provided — prompt rejected') }
if (!requestId)
1.0.0
null
2026-05-18T18:06:36.684Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
ZYKJShadow/Async
main-src/ipc/register.ts
https://github.com/ZYKJShadow/Async/blob/b2964f133a0ea9c3aa106ad3e21d5ecef5892248/main-src/ipc/register.ts
59ca9bea39103e439d5deed51f2692804515ccd6
const requestId = String(payload?.requestId ?? ''); if (!requestId) { return { ok: false as const, error: 'missing requestId' as const };
if (!requestId)
1.0.0
null
2026-05-18T18:06:36.684Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
echogarden-project/echogarden
src/server/Client.ts
https://github.com/echogarden-project/echogarden/blob/d1211c5b2e5a3e1d701504fbfb91b2f78bdf47f9/src/server/Client.ts
b50b715b758f98204f8db0df6500896a76e8655d
onMessage(incomingMessage: any) { const requestId = incomingMessage.requestId if (!requestId) { log('Received a WebSocket message without a request ID') return }
if (!requestId)
1.0.0
null
2026-05-18T18:06:36.684Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
aifuxi/fuxiaochen
proxy.ts
https://github.com/aifuxi/fuxiaochen/blob/27fac1a84e53dd9ccb0ad34f496848f18542fe39/proxy.ts
8cecdcd2cad223216718ca394702df471565b1c2
pathname === "/api/admin" || pathname.startsWith("/api/admin/"); const createNextResponse = (request: NextRequest, requestId?: string) => { if (!requestId) { return NextResponse.next(); }
if (!requestId)
1.0.0
null
2026-05-18T18:06:36.684Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
genai-works-org/genai-agentos
frontend/src/hooks/useLogs.ts
https://github.com/genai-works-org/genai-agentos/blob/b727600edf99e295274f2f7d9aae45af009ddd2c/frontend/src/hooks/useLogs.ts
213e710e79f6da0c6c1735e87875eacb81607abc
const [error, setError] = useState<Error | null>(null); const fetchLogs = useCallback(async (requestId: string) => { if (!requestId) return; setIsLoading(true); setError(null);
if (!requestId)
1.0.0
null
2026-05-18T18:06:36.684Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
Haufe-Lexware/wicked.haufe.io
src/auth/src/providers/saml.ts
https://github.com/Haufe-Lexware/wicked.haufe.io/blob/1efadeabae7b7ccb4b17473e9aa5d0af60796adb/src/auth/src/providers/saml.ts
d6b7f9d1a662a12ccead5610e994fbcdd5765cfb
debug(`assertHandler()`); const authRequest = utils.getAuthRequest(req, instance.authMethodId); const requestId = authRequest.requestId; if (!requestId) return failMessage(400, 'Invalid state for SAML Assert: Request ID is not present', next); ...
if (!requestId)
1.0.0
null
2026-05-18T18:06:36.684Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
hzrd149/nostrudel
src/helpers/nostr/dvm.ts
https://github.com/hzrd149/nostrudel/blob/fdbf3c0a7cb63e2fa391ea6234106a69b6d011e1/src/helpers/nostr/dvm.ts
50277b3a063a195b95f987be1bc28afdd2f9de9f
if (event.kind >= 5000 && event.kind < 6000) continue; const requestId = event.tags.find(isETag)?.[1]; if (!requestId) continue; const job = jobs[requestId]; if (!job) continue;
if (!requestId)
1.0.0
null
2026-05-18T18:17:29.781Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
liyupi/mianshiya
src/services/message.ts
https://github.com/liyupi/mianshiya/blob/7354f4859b7425338dfcff6410e9903bca0ec0dd/src/services/message.ts
733e920264df99c6a29b6f9090fff9f433736e84
export function deleteMessage(messageId: string) { if (!messageId) { return false;
if (!messageId)
1.0.0
null
2026-05-18T18:17:29.781Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
actionhero/actionhero
src/servers/websocket.ts
https://github.com/actionhero/actionhero/blob/c47fa78e8abdd9a8cffa3774e7e60bc4596f87c8/src/servers/websocket.ts
e294967d9bd84b49193ce61f6b16bf56cd728a1c
if (!message.context) { message.context = "response"; } if (!messageId) { messageId = connection.messageId; } if (message.context === "response" && !message.messageId) {
if (!messageId)
1.0.0
null
2026-05-18T18:17:29.781Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
AlexAnys/openclaw-feishu
src/dedup.ts
https://github.com/AlexAnys/openclaw-feishu/blob/c48634b74cd0ab2741408c3e63ba7ade71b6c6b2/src/dedup.ts
08578819beb7202c6a2e9b61cc7fb6b6adc23177
if (now - ts > SEEN_TTL_MS) seen.delete(k); } if (!messageId) return false; if (seen.has(messageId)) return true; seen.set(messageId, now); return false;
if (!messageId)
1.0.0
null
2026-05-18T18:17:29.781Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
firecrawl/firegeo
app/api/chat/feedback/route.ts
https://github.com/firecrawl/firegeo/blob/5bef51fe5ab3bed46a58b8825416f06e34309d7f/app/api/chat/feedback/route.ts
dcb1332983ef7ad5d4c5d6fc6ad71bf574fabe3a
const { messageId, helpful, rating, feedback } = await request.json(); if (!messageId) { return NextResponse.json({ error: 'Message ID required' }, { status: 400 }); }
if (!messageId)
1.0.0
null
2026-05-18T18:17:29.781Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
FranciscoMoretti/chat-js
apps/chat/lib/stores/hooks-base.ts
https://github.com/FranciscoMoretti/chat-js/blob/0fcd554d0554ae750a48ffc9d70d4398d06bbb5b/apps/chat/lib/stores/hooks-base.ts
5c55c1a4b576ed7776b51578a8ba2eea14304897
export const useLastUsageUntilMessageId = (messageId: string | null) => useBaseChatStore((state) => { if (!messageId) { return; } const messages = state._throttledMessages || state.messages;
if (!messageId)
1.0.0
null
2026-05-18T18:17:29.781Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
timbru31/quickjira
src/js/localizer.ts
https://github.com/timbru31/quickjira/blob/bb223ab7698105f9fa6845315f68bde07f4de92f/src/js/localizer.ts
a614092672f463e8a0166d1fe1043177ec530852
import { _browser } from './helper.js'; const translate = (messageID: string | undefined) => { if (!messageID) { return ''; } return _browser.i18n.getMessage(messageID);
if (!messageId)
1.0.0
null
2026-05-18T18:17:29.781Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
halo-dev/upage
app/routes/api/project/export.ts
https://github.com/halo-dev/upage/blob/e401bfc12ac8293d421b0c7c22b746bafa817317/app/routes/api/project/export.ts
6ec71d1559f5eb233178a954a5b1134d7693666d
const formData = await request.formData(); const messageId = formData.get('messageId')?.toString(); if (!messageId) { return errorResponse(400, '缺少 messageId 参数'); }
if (!messageId)
1.0.0
null
2026-05-18T18:17:29.781Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
AgoraIO-Community/CloudClass-Desktop
src/infra/protocol/index.ts
https://github.com/AgoraIO-Community/CloudClass-Desktop/blob/7018bd0dd82ffb4c10065e687b153abab281ddec/src/infra/protocol/index.ts
d87eb03ebf0e1b459966397d9cd0f65a8becde04
this._broadcastMessage(AgoraExtensionRoomEvent.MobileCallStateChanged, callState); } private _broadcastMessage(event: AgoraExtensionRoomEvent, args?: unknown, messageId?: string) { if (!messageId) { messageId = uuid(); }
if (!messageId)
1.0.0
null
2026-05-18T18:17:29.781Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
Keeper-Wallet/Keeper-Wallet-Extension
src/background.ts
https://github.com/Keeper-Wallet/Keeper-Wallet-Extension/blob/6ef57b32a931587e5dec817ca4c4ee949f7ea06e/src/background.ts
19b54c4fcc06350ed6ab931930a53f003d4ce80b
} } if (!messageId) { const message = await this.messageController.newMessage({ account: selectedAccount, connectionId,
if (!messageId)
1.0.0
null
2026-05-18T18:17:29.781Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
upstash/workflow-js
src/workflow-requests.ts
https://github.com/upstash/workflow-js/blob/b13a8bfd438e358f7ffb67a2b5b6ceb9c581b1ad/src/workflow-requests.ts
9b7eaeda7a85eecd09ffe1613a8719764f767323
if (!workflowRunId) throw new WorkflowError("workflow run id missing in context.call lazy fetch."); if (!messageId) throw new WorkflowError("message id missing in context.call lazy fetch."); const { steps, workflowRunEnded } = await getSteps( client.http,
if (!messageId)
1.0.0
null
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
BeOnAuto/ketchup
src/logger.ts
https://github.com/BeOnAuto/ketchup/blob/80f7ce27382b35d4a8a6654f292369c2517a6290/src/logger.ts
5f3954545a284abe5482344f56144b7717c8f14b
ensureLogDir(); if (!sessionId) { logFilePath = path.join(hooksDir, 'unknown.log'); return logFilePath; }
if (!sessionId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
XxxXTeam/flowith2api_deno
main.ts
https://github.com/XxxXTeam/flowith2api_deno/blob/7506bcafa94421bb75c19d509b32386e6fbf821b/main.ts
741891ddf0d7bd2a2b11171edb265ec54fea98ae
const sessionId = url.searchParams.get("session_id"); if (!sessionId) return badRequest("`session_id` query parameter is required.");
if (!sessionId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
eastlondoner/vibe-tools
src/commands/clickup/task.ts
https://github.com/eastlondoner/vibe-tools/blob/4a1d17cf501db3a719a9c2bf0ee0d288282a63a7/src/commands/clickup/task.ts
64bc0276cc3d4211df9c8e85c3f14df4b3a0dbe1
async *execute(query: string, options?: ClickUpOptions): CommandGenerator { const taskId = query.trim(); if (!taskId) { yield 'Please specify a task ID (e.g., vibe-tools clickup task "task_id")'; return; }
if (!taskId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
MrLesk/Backlog.md
src/core/backlog.ts
https://github.com/MrLesk/Backlog.md/blob/7af19f80ada6406fbefcfd95af347c809f544c8b/src/core/backlog.ts
2d3a0d52e9f26bb1e550f5b493a2a2b3f9f8e7b5
if (!taskId) throw new Error("taskId is required"); if (!targetStatus) throw new Error("targetStatus is required");
if (!taskId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
HeroBlackInk/ultimate-todoist-sync-for-obsidian
src/api/restApi.ts
https://github.com/HeroBlackInk/ultimate-todoist-sync-for-obsidian/blob/7ba62023e634e38705cc072911f50a50bb873305/src/api/restApi.ts
670250b6ad4055c2e186a2115245b54a210b77e2
const api = await this.initializeAPI() if (!taskId) { throw new Error('taskId is required');
if (!taskId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
Altinn/app-frontend-react
src/utils/formLayout.ts
https://github.com/Altinn/app-frontend-react/blob/589669d853cebdec83c71869f2653a9abb87c288/src/utils/formLayout.ts
80afbf21a752e0c1dac9180e9f456257beed8c51
* @param layoutSets the layout sets */ export function behavesLikeDataTask(taskId: string | null | undefined, layoutSets: ILayoutSet[] | null): boolean { if (!taskId) { return false; }
if (!taskId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
win4r/openclaw-a2a-gateway
index.ts
https://github.com/win4r/openclaw-a2a-gateway/blob/a335e59e926f7e1a8913e6cd7b1cbf2d44c33cb7/index.ts
e4bef53b3235d104a8b0419730099df611bdaa2c
const taskId = typeof rawTaskId === "string" ? rawTaskId : ""; if (!taskId) { res.status(400).json({ error: "taskId is required" });
if (!taskId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
jaimeirazabal1/event-sourcing-app
src/server.ts
https://github.com/jaimeirazabal1/event-sourcing-app/blob/c7f6d68e8d49e4097c7088c557c7f6a1c90ad185/src/server.ts
00333eedd3924f34d00bb5e7aa6b0c8a59b3311e
}); app.post('/tasks/complete', async (req, res) => { const { taskId } = req.body; if (!taskId) { return res.status(400).send({ message: 'taskId is required' }); } await taskCommands.completeTask(taskId);
if (!taskId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
cliffhall/GooseTeam
src/operations/tasks.ts
https://github.com/cliffhall/GooseTeam/blob/a67e5b23fa379f9fb6bcf0eb8b0e55087e527485/src/operations/tasks.ts
c80dc0743148d4bbfb41a2076cbff0de61f7040c
* @param taskId */ export const completeTask = (taskId: string): void => { if (!taskId) { throw new Error("Task ID and Agent ID are required"); }
if (!taskId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
monotykamary/pi-messenger-swarm
router.ts
https://github.com/monotykamary/pi-messenger-swarm/blob/0991cc4c56b8eb8faf2616ea7a9e7936dc227040/router.ts
360995264572b9e1b08c33efc8bbbd3c002f49ef
const taskId = params.taskId ?? params.id; if (!taskId) { return result('Error: id or taskId required for claim action.', {
if (!taskId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
piotrjura/pm
src/commands/error.ts
https://github.com/piotrjura/pm/blob/b9e6edac60b3261f76305e72d878198ff283e4fd/src/commands/error.ts
0e9444ecbead9fe876c333498ae770eddd2442bc
export function cmdError(args: string[]) { const taskId = args[0] if (!taskId) { console.error('Usage: pm error <taskId> [--note "reason"]') process.exit(1) }
if (!taskId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
ora-io/cle-cli
src/commands/setup.ts
https://github.com/ora-io/cle-cli/blob/399da4ea1c9d7894a33a1fb0f8848f00fa4982d7/src/commands/setup.ts
7dc51788aeb6bbec2720d1924967be75abc30c14
return } const taskId = data.task?.id if (!taskId) { logger.error('[+] SETUP TASK FAILED. The task result not found \n') return }
if (!taskId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
openclaw/openclaw
src/agents/harness/native-hook-relay.ts
https://github.com/openclaw/openclaw/blob/06a39015f21cc1df5690b693b2484b8818d8aed9/src/agents/harness/native-hook-relay.ts
1a1f0db00916b2492b83339e97e229274e66fa39
toolUseId?: string; }): boolean { const toolUseId = params.toolUseId?.trim(); if (!toolUseId) { return false; } return invocations.some(
if (!toolUseId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
claude-code-best/claude-code
packages/builtin-tools/src/tools/utils.ts
https://github.com/claude-code-best/claude-code/blob/c499bfb4ed03c7ad58e13a9bc43daa12d476ae08/packages/builtin-tools/src/tools/utils.ts
9074181c939aae927315781ac2155113aef318da
messages: (UserMessage | AttachmentMessage | SystemMessage)[], toolUseID: string | undefined, ): (UserMessage | AttachmentMessage | SystemMessage)[] { if (!toolUseID) { return messages } return messages.map(m => {
if (!toolUseId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
Gitlawb/openclaude
src/cli/print.ts
https://github.com/Gitlawb/openclaude/blob/f71e7692373a61d28c82fc3fadff3feaa4071ede/src/cli/print.ts
344691d0ea6d6eec2703e890c30eeb9576e6689e
) { const permissionResult = message.response.response as PermissionResult const { toolUseID } = permissionResult if (!toolUseID) { return false }
if (!toolUseId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
nexu-io/open-design
apps/daemon/src/chat-routes.ts
https://github.com/nexu-io/open-design/blob/34f66113a0f2391714d081d848e7dc48a5222de0/apps/daemon/src/chat-routes.ts
c11cde5e33d437b00c78bbb51829607a0ef9c408
const toolUseId = typeof body.toolUseId === 'string' ? body.toolUseId : ''; const content = typeof body.content === 'string' ? body.content : ''; const isError = body.isError === true; if (!toolUseId) { return sendApiError(res, 400, 'BAD_REQUEST', 'toolUseId is required'); } const result =...
if (!toolUseId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
shareAI-lab/Kode-CLI
src/utils/terminal/replStaticSplit.ts
https://github.com/shareAI-lab/Kode-CLI/blob/dfa874be82c23ca492218d4969e8f5dc0ea7b8c5/src/utils/terminal/replStaticSplit.ts
51dfb1e634040e1cc44632c0c8088499adb4ec3c
case 'user': case 'assistant': { const toolUseID = getToolUseID(message) if (!toolUseID) { return true } if (unresolvedToolUseIDs.has(toolUseID)) {
if (!toolUseId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
mlflow/mlflow
libs/typescript/integrations/claude-code/src/liveTracing.ts
https://github.com/mlflow/mlflow/blob/ef409cab8a72d21763dc762b94791ef1ec40437a/libs/typescript/integrations/claude-code/src/liveTracing.ts
cee6cddaaeb51ebd446fa41110b8596bf8484c73
is_error?: boolean; }; const toolUseId = toolResult.tool_use_id; if (!toolUseId) { continue; }
if (!toolUseId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
code-yeongyu/oh-my-openagent
src/hooks/session-recovery/recover-tool-result-missing.ts
https://github.com/code-yeongyu/oh-my-openagent/blob/37bd866c32b1d140526967b51b8c8957e9daed83/src/hooks/session-recovery/recover-tool-result-missing.ts
2f7e30b0f759f4fd657dbf10620bfec5ea671831
function normalizeMessagePart(part: { type: string; id?: string; callID?: string; state?: { status?: unknown } }): MessagePart | null { if (part.type === "tool" || part.type === "tool_use") { const toolUseID = selectValidToolUseID(part) if (!toolUseID) { return null }
if (!toolUseId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
ZYKJShadow/Async
main-src/agent/toolResultBudget.ts
https://github.com/ZYKJShadow/Async/blob/b2964f133a0ea9c3aa106ad3e21d5ecef5892248/main-src/agent/toolResultBudget.ts
fa1bc288fd37cee5eb83f461c8212e11f29b1c68
const replacementMap = new Map<string, ToolResultReplacementRecord>(); for (const record of state?.replacements ?? []) { const toolUseId = String(record?.toolUseId ?? '').trim(); if (!toolUseId) { continue; } replacementMap.set(toolUseId, {
if (!toolUseId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
xintaofei/codeg
src/lib/session-files.ts
https://github.com/xintaofei/codeg/blob/62936610b8f8eb592b4a6b971d5961fa6e215564/src/lib/session-files.ts
13afff6b9bb3d09bf9c4a3b2697db2a9dd1ed316
blocks: ContentBlock[], toolUseId: string | null ): string | null { if (!toolUseId) return null for (const block of blocks) { if ( block.type === "tool_result" &&
if (!toolUseId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:27:28.385Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
happier-dev/happier
apps/cli/src/backends/claude/utils/sessionScanner.ts
https://github.com/happier-dev/happier/blob/379c994119769609cc6b1c318f0fe8a98fce7b98/apps/cli/src/backends/claude/utils/sessionScanner.ts
93cc92516e42cb9cb6bca79c2156d55cd98fe189
const toolUseId = typeof (item as any).tool_use_id === 'string' ? String((item as any).tool_use_id).trim() : ''; if (!toolUseId) continue; taskToolUseIdByAgentId.set(agentId, toolUseId);
if (!toolUseId)
1.0.0
hunt_batch_100_r038.61
2026-05-18T18:29:27.120Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
Nainish-Rai/strings-web
lib/api.ts
https://github.com/Nainish-Rai/strings-web/blob/ee2e20604713f597be38c932ba670d8c5472f0a9/lib/api.ts
38599bbb9669c0040d78943c4d32a9bd2659f0f5
import threadsAPI from "./apiclient"; export async function getUserData(username: string) { const userID = await threadsAPI.getUserIDfromUsername(username); if (!userID) { return; } const userData = await threadsAPI.getUserProfile(username, userID);
if (!userId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:27.122Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
pengxiaohua/listenly
lib/auth.ts
https://github.com/pengxiaohua/listenly/blob/7a8d52be1e975b2e0b02ad340152e451e43cdd1b/lib/auth.ts
bf5d4e7af266d9ffebd01ca1d6fd137a0a5005b7
if (!userId) { return { isValid: false, error: '未登录' };
if (!userId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:27.123Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
capacitor-community/firebase-analytics
src/web.ts
https://github.com/capacitor-community/firebase-analytics/blob/82896da112c3fb69f8252a1e9969edfee90016cb/src/web.ts
724b0d70a15421a7219d5b6ee944675b460f144a
const { userId } = options || { userId: undefined }; if (!userId) { reject("userId property is missing"); return; }
if (!userId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:27.124Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
mifi/SimpleInstaBot
packages/instauto/src/index.ts
https://github.com/mifi/SimpleInstaBot/blob/1b20a84fb22b3faa6241bc52d252f83dd94dd8a5/packages/instauto/src/index.ts
10c1d41fce9503440a874feb1a6143b81a428d1f
const elementHandle = await getXpathElement("//a[contains(.,' following')][contains(@href,'/following')]", { timeout: 1000 }); if (elementHandle == null) throw new Error('Following button not found'); if (!userId) throw new Error('Unable to resolve user id'); const [foundResponse] = await Promi...
if (!userId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:27.124Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
Supernova3339/changerawr
proxy.ts
https://github.com/Supernova3339/changerawr/blob/a72f1c9e9084bfbc3cfc61f47fabad2c66243a64/proxy.ts
55aca3cb2e134ec90f3445df6fc5185f28a191c9
try { const userId = await verifyAccessToken(accessToken) if (!userId) { if (refreshToken) { return NextResponse.next() }
if (!userId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:27.125Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
ZORfree/arxiv_assistant
lib/user.ts
https://github.com/ZORfree/arxiv_assistant/blob/a8b80d42dce0e276f4b58405846ed5973a369e58/lib/user.ts
36e45773a1d1031b2e177568b5db433161a8840c
} let userId = localStorage.getItem(this.USER_ID_KEY); if (!userId) { userId = crypto.randomUUID(); localStorage.setItem(this.USER_ID_KEY, userId); }
if (!userId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:27.126Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
manifoldmarkets/manifund
db/bid.ts
https://github.com/manifoldmarkets/manifund/blob/7a20471542bee5460b9a65277add82913628ae58/db/bid.ts
8a32e7694462018f794045e896ae338d54f0864d
export async function getBidsByUser(supabase: SupabaseClient, userId: string) { if (!userId) { return []
if (!userId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:27.126Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
justjake/notrition
lib/swr.ts
https://github.com/justjake/notrition/blob/7d1c750803cb6c7cecd7b53a2c0e9f5d8e8ac53c/lib/swr.ts
0fc6098bb2da7345df64a3e6302d9c06900545ee
) { if (!userId) { return null
if (!userId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:27.127Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
Learn-Build-Teach/learn-build-teach-discord-bot
src/bot.ts
https://github.com/Learn-Build-Teach/learn-build-teach-discord-bot/blob/ae9d8800259c3733110775b706537b715c5dcd29/src/bot.ts
c63e9615f251e95fb7ffc41890a6f2134d126979
discordClient.on('message', async (message: Message) => { const userId = message?.author.id; if (!userId) return; try { await addXpToDiscordUser(userId); console.info(`Added xp to user: ${userId}`);
if (!userId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:27.128Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
UrsaMU/ursamu
src/app.ts
https://github.com/UrsaMU/ursamu/blob/85425ca3909de8f03e0eecdc479d227f67689984/src/app.ts
c6aa4825a4eedb1604e64b2a857dd546d3fe89d4
async function resolveCallerPrivLevel(userId: string | null): Promise<number> { if (!userId) return 0; const user = await dbojs.queryOne({ id: userId }).catch(() => null);
if (!userId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:32.391Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
caprover/caprover
src/routes/user/oneclick/OneClickAppRouter.ts
https://github.com/caprover/caprover/blob/3b22ac62a482c281ff91ef3d89291e717180fae6/src/routes/user/oneclick/OneClickAppRouter.ts
c9d2b6bc3e0815601636a69b22bd8cb51f7a1534
return Promise.resolve() // .then(function () { // Validate input if (!jobId) { throw ApiStatusCodes.createError( ApiStatusCodes.ILLEGAL_PARAMETER, 'Job ID is required'
if (!jobId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:32.392Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
vincanger/coverlettergpt
src/server/actions.ts
https://github.com/vincanger/coverlettergpt/blob/562fcc5e982d700f87f9fc9bab97dd5686b0e5e3/src/server/actions.ts
791a6dccb74a8a7d29e2273eb3cf53e33b3573df
if (!context.user) { throw new HttpError(401); } if (!jobId) { throw new HttpError(401); }
if (!jobId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:32.392Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
ai-hermes/doc-solver
pages/api/job.ts
https://github.com/ai-hermes/doc-solver/blob/d9504e6ef7cfa8eb5c8388cdc870aeaab63ab2a8/pages/api/job.ts
6d2834384880b43ec2cef53814a8969a0bfa6bc8
switch (req.method) { case 'GET': { const { jobId } = req.query if (!jobId) { throw new Error('jobId is required') } const job = await getJobDetail(jobId as string)
if (!jobId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:32.392Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
sturdy-dev/codeball-action
src/lib/features/index.ts
https://github.com/sturdy-dev/codeball-action/blob/4e96dfa904bedf8fe7d4d4e227e6125b663f4ff3/src/lib/features/index.ts
3fe41a1cc2b4319f233e873b55696a414f002afa
}: { jobID?: string }): Promise<Features> => { if (!jobID) { return { approve: true, label: true
if (!jobId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:32.393Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
zowe/zowe-install-packaging
bin/libs/zos-jes.ts
https://github.com/zowe/zowe-install-packaging/blob/5d088f44df6f96646b54ee53b313e68430d23490/bin/libs/zos-jes.ts
1f8fd22bcbf87bfec675ab83545a7323a3210344
let jobid = jobidlines.length > 0 ? jobidlines[0].split(' ')[1] : undefined; if (!jobid) { jobidlines = result.out.split('\n').filter(line => line.indexOf('$HASP') != -1);
if (!jobId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:32.393Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
xynehq/xyne
server/api/tuning.ts
https://github.com/xynehq/xyne/blob/4b7ced76cda38c6eb5e414f4147f6456735f7da2/server/api/tuning.ts
19954f2d3ebfb8685c5d5958a01c7fff0f7525ea
const email = jwtPayload?.sub return { onOpen: (evt: Event, ws: WSContext<ServerWebSocket<any>>) => { if (!jobId) { loggerWithChild({ email: email }).error( "WebSocket opened without jobId!", )
if (!jobId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:32.394Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
nodetool-ai/nodetool
packages/cli/src/stdin.ts
https://github.com/nodetool-ai/nodetool/blob/a3b863a3b41aa3123f14fa2473309b88766052e9/packages/cli/src/stdin.ts
d43aa23eb790f2864cfdb149081153e699cee3de
const jobId = cmd.args.trim(); if (!jobId) { process.stderr.write("Usage: /reconnect <job_id>\n");
if (!jobId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:32.394Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
daveschumaker/artbot-for-stable-diffusion
app/_utils/db.ts
https://github.com/daveschumaker/artbot-for-stable-diffusion/blob/1bd51aaedac8e425e21ecfb1941ecf212304014b/app/_utils/db.ts
e36bde8cb7ec5d79677a0825e75daa193749d79f
jobId: string = '', updateFields: any ) => { if (!jobId) return await db.completed .where('jobId')
if (!jobId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:32.395Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
QMatSuite/QMatSuite
gui/src/hooks/useJobs.ts
https://github.com/QMatSuite/QMatSuite/blob/76e4ab81c27d166500f5e1686a82c8e5831d127d/gui/src/hooks/useJobs.ts
aa2c16cfd7c4df4f3779b94bd09a14eae2544e67
// Initial fetch and polling setup useEffect(() => { if (!jobId) { setJob(null); setLogs(null); jobRef.current = null;
if (!jobId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:32.395Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
windingwind/zotero-plugin-toolkit
src/helpers/message.ts
https://github.com/windingwind/zotero-plugin-toolkit/blob/6d8b2182276025a0db47ff96c7c016613cab7d52/src/helpers/message.ts
6974c5aca06a569db0d4d2b288dd059fbb87fbb3
}) { const { name, data: params } = options; let { jobID, success, requestReturn } = options; if (!jobID) { jobID = randomJobID(); } if (typeof success === "undefined") {
if (!jobId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:37.671Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
CharlieLZ/flux-kontext-template
src/lib/payment.ts
https://github.com/CharlieLZ/flux-kontext-template/blob/68017fa1283baf8eb2e7ac876f3fccc6b9b7df3b/src/lib/payment.ts
5e195e2b17c484dba3dedea63222fe9cca21907c
} const orderId = session.metadata.orderId if (!orderId) { throw new Error("Order ID not found in session metadata") }
if (!orderId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:37.672Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
kadekdodikwirawan/tan-pos
src/lib/utils.ts
https://github.com/kadekdodikwirawan/tan-pos/blob/b92d616cf52139839d2edcf3ce6e37f14a89a65a/src/lib/utils.ts
be4c550c8069e5f37b4b5c74e43f7f364c96f4e4
} const handlePrintReceipt = (orderId: string | number) => { if (!orderId) return; if (typeof window !== 'undefined') { const printUrl = `/print/receipt/${orderId}`; window.open(printUrl, '_blank');
if (!orderId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:37.672Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
OctagonAI/kalshi-trading-bot-cli
src/commands/index.ts
https://github.com/OctagonAI/kalshi-trading-bot-cli/blob/3b40fb332569325e3bde8b474fc17d96a5fdf073/src/commands/index.ts
4a7038310b6a6de28ea4469d54be28d005bd4b68
} async function handleCancel(orderId: string | undefined): Promise<CommandResult> { if (!orderId) return { output: 'Usage: /cancel <order_id>' }; try { await callKalshiApi('DELETE', `/portfolio/orders/${orderId}`);
if (!orderId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:37.673Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
Citizens-Hub/App
src/utils/orderId.ts
https://github.com/Citizens-Hub/App/blob/3f9d8672d4e748e01eb242c7d451e0c987a26625/src/utils/orderId.ts
5634e6882f0568a9f239351b4de65cbfca8933d3
const ORDER_PUBLIC_ID_PREFIX = 'ord_'; export function formatOrderPublicId(orderId: string, visibleBodyPrefix = 8, visibleSuffix = 4) { if (!orderId) { return ''; }
if (!orderId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:37.673Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
paypal-examples/paypal-sdk-server-side-integration
src/order/get-order.ts
https://github.com/paypal-examples/paypal-sdk-server-side-integration/blob/5409a3b9c0b6d0049fc3be9386092759fd6a1d5c/src/order/get-order.ts
a1de1dac83d4effc21c2c153d72ca4a0ad255ba5
orderID, headers, }: GetOrderOptions): Promise<GetOrderResponse> { if (!orderID) { throw new Error("MISSING_ORDER_ID"); }
if (!orderId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:37.674Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
spfunctions/simplefunctions-cli
src/commands/cancel.ts
https://github.com/spfunctions/simplefunctions-cli/blob/2a0ac6123ca8ced9421c05c207f2b4b4742cf90a/src/commands/cancel.ts
60d68bc9ab2527545cc21ffdc22e5e29f3f5a3dc
return } if (!orderId) { throw new Error('Usage: sf cancel <orderId> or sf cancel --all') }
if (!orderId)
null
hunt_batch_100_round3_r038.61
2026-05-18T18:29:37.674Z
diagnosed_in_the_wild
ALEF-PAT-019
zero-as-falsy-id
7
0.7
gh_code_search_textmatch
Dominien/brunnfeld-agentic-world
src/tools.ts
https://github.com/Dominien/brunnfeld-agentic-world/blob/e0656ca01630333e26c622ffd4ba4c973b79eebe/src/tools.ts
60844a457206454ce7e37b2f9b69e8bd9df4b131
case "cancel_order": { const orderId = action.order_id; if (!orderId) { feedbackToAgent(agent, state, "[Can't do that] cancel_order requires order_id."); return { ...action, result: "[Can't do that] cancel_order requires order_id.", visible: false }; }
if (!orderId)
null
hunt_batch_100_round3_r038.61
End of preview. Expand in Data Studio

Diagnosed Agentic Bugs (in the wild)

237 real instances of named failure modes found in public agentic-AI codebases on GitHub, indexed against the ALEF Pattern Catalog.

Produced autonomously by ALEF (Autonomous Logic Engineering Framework), an autonomous AI engine that scans the public OSS landscape and cross-references findings against a published catalog of known failure modes.

What's in here

Each row is one diagnosis:

{
  "ts": "2026-05-21T15:40:12.159Z",
  "kind": "diagnosed_in_the_wild",
  "pattern_id": "ALEF-PAT-019",
  "slug": "zero-as-falsy-id",
  "severity": 7,
  "confidence": 0.70,
  "verification": "gh_code_search_textmatch",
  "repo": "johanohly/AirTrail",
  "path": "src/hooks.server.ts",
  "url": "https://github.com/...",
  "sha": "38619fa1fe9b321fb5d233e9312bff6c1cab2807",
  "excerpt": "const sessionId = event.cookies.get(...); if (!sessionId) { ... }",
  "hunt_query": "if (!sessionId)",
  "catalog_version": "2.5.0-alpha"
}

Coverage

  • 237 diagnoses across 216 unique repos
  • Patterns hunted: ALEF-PAT-019 (zero-as-falsy-id), ALEF-PAT-001 (orphan tool_use), ALEF-PAT-004 (gh pr merge fail), ALEF-PAT-027 (shell:true windowsHide)
  • Time range: 2026-05-13 → 2026-05-25

Honest caveats

  • Findings have a known false-positive rate, especially on if (!sessionId) text-matches in codebases using random-string session IDs (where 0 is not a valid value, so the pattern doesn't strictly apply). Use as research signal, not as authoritative claims.
  • The diagnosis is via GitHub Code Search textMatches only — no static analysis or AST verification (yet — see task #39 for Scanner v0.2 trigram + AST plans).
  • Confidence floor is 0.70 (textmatch); promotion to ≥0.85 requires manual verification.

Use cases

  • Training pattern-recognition models for agentic-AI code
  • Studying failure-mode prevalence across OSS
  • Benchmarking pattern-detection tools
  • Building defensive lints

Provenance

  • Substrate: ALEF (Autonomous Logic Engineering Framework)
  • Operator: @Ilya0527 (Elia Shmuelovitch)
  • Hunter agent: agents/external_pattern_hunter.mjs (rate-limited, read-only, dedupe-aware)
  • Doctrine alignment: #25 (5/day outbound cap), #36 (Open ALEF Identity — every contribution signed)
  • Generated: 2026-05-25 (initial seed, will grow as the hunter rotates patterns)

License

CC-BY-4.0 — same as the source catalog. Attribute to ALEF + Elia Shmuelovitch.

Related

🤖 Generated by ALEF · signed openly per Doctrine #36

Downloads last month
-