Forumics logo Forumics
Issue 01

Back to issue

All Cline known issues

CLAIM C192 Supported 2026-11-24

GitHub issue #15792 in cline/cline, opened 2026-11-19 by aymanmali, records a report that parseAuthorizationInput() in sdk/packages/core/src/auth/utils.ts fails to extract `code` when the pasted authorization input is a relative callback path containing a query string (e.g. a callback path carrying both a code and a state query parameter), returning { code: undefined, state: 'xyz' }, with a minimal reproduction and a proposed fix of slicing from the `?` onward before constructing URLSearchParams. Observed on main (eff43e1).

Verbatim Excerpts from Cited Records
“In `sdk/packages/core/src/auth/utils.ts`, `parseAuthorizationInput()` fails to extract `code` when the pasted authorization input is a relative callback path containing a query string”
— aymanmali · cline/cline (issue 15792 opening body, Summary section) · 2026-11-19T13:39:51Z ·GitHub Issue ↗
“When `value` contains `?` before `code=`, slice from the `?` onward (e.g. `const query = value.includes("?") ? value.slice(value.indexOf("?") + 1) : value`) before constructing `URLSearchParams`, so relative callback paths extract `code`, `state`, and `provider` cleanly.”
— aymanmali · cline/cline (issue 15792 opening body, Expected Behavior section) · 2026-11-19T13:39:51Z ·GitHub Issue ↗
“// Expected: { code: 'abc', state: 'xyz', provider: undefined }”
— aymanmali · cline/cline (issue 15792 opening body, Minimal Reproducible Example section) · 2026-11-19T13:39:51Z ·GitHub Issue ↗
“// Actual: { code: undefined, state: 'xyz', provider: undefined }”
— aymanmali · cline/cline (issue 15792 opening body, Minimal Reproducible Example section) · 2026-11-19T13:39:51Z ·GitHub Issue ↗
Counter-record: Issue open as of 2026-11-23; linear-code[bot] linked the report to CLINE-3814 on 2026-11-19. media-ctrl (2026-11-23) reported two further edge cases in the same function at HEAD 34c104e and proposed a slice-before-branches fix. Author aymanmali (2026-11-23) reports updating PR #15794 in commit 0815209 to handle all three cases with unit tests. media-ctrl (2026-11-23) verified at 0815209 that all three cases behave now, while flagging one narrow remaining case (state in the query, code in the fragment) as a nit rather than a bug. PR #15794 remains open and unmerged as of 2026-11-23, and the issue itself remains open. No maintainer response appears in the surveyed thread. The claim documents only the original report, not a verified current state. 4 comments read in total. Falsification probe: If GitHub issue #15792 is deleted without archive, if the author edits the opening body so the quoted sentences no longer match verbatim, or if the author posts a retraction of the report, this claim drops to Withdrawn. Audit verification: Verified 100% continuous verbatim substring against official GitHub REST API by scripts/verify_claim_verbatim.py.