Skip to content

fix(feishu): remove invalid timeout properties from SDK method calls#38267

Merged
thewilloftheshadow merged 1 commit intoopenclaw:mainfrom
ant1eicher:fix/feishu-media-timeout-types
Mar 6, 2026
Merged

fix(feishu): remove invalid timeout properties from SDK method calls#38267
thewilloftheshadow merged 1 commit intoopenclaw:mainfrom
ant1eicher:fix/feishu-media-timeout-types

Conversation

@ant1eicher
Copy link
Copy Markdown
Contributor

@ant1eicher ant1eicher commented Mar 6, 2026

Summary

  • Removes timeout property from four Lark SDK method calls in extensions/feishu/src/media.ts
  • The property is not part of the SDK method type signatures, causing TS2353 errors that break CI on main
  • The client-level httpTimeoutMs (set via createFeishuClient) already applies the 120s timeout to all requests, so no behavior change

Test plan

  • pnpm build passes
  • Feishu type errors resolved
  • CI passes

🤖 Generated with Claude Code

@openclaw-barnacle openclaw-barnacle bot added channel: feishu Channel integration: feishu size: XS labels Mar 6, 2026
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Mar 6, 2026

Greptile Summary

This PR fixes four TypeScript TS2353 compilation errors in extensions/feishu/src/media.ts by removing the timeout property from Lark SDK method call arguments, where it was never a valid option in the SDK's type signatures.

  • The 120-second timeout (FEISHU_MEDIA_HTTP_TIMEOUT_MS) is still correctly applied via httpTimeoutMs passed to createFeishuClient, which internally creates a createTimeoutHttpInstance wrapper that injects the timeout into every HTTP request. No behavior change occurs.
  • The constant FEISHU_MEDIA_HTTP_TIMEOUT_MS remains defined and used correctly at the client creation sites on lines 104, 142, 189, and 259.
  • The fix is minimal, accurate, and unblocks CI on main.

Confidence Score: 5/5

  • This PR is safe to merge — it's a purely type-correctness fix with no behavior change.
  • The removed timeout properties were silently ignored by the SDK at runtime (since they weren't in the method signatures), and the 120s timeout is fully preserved through the client-level httpTimeoutMscreateTimeoutHttpInstance mechanism. The change is isolated to a single file, affects only TS type correctness, and has no runtime impact.
  • No files require special attention.

Last reviewed commit: 3356c75

The `timeout` property is not part of the Lark SDK method signatures,
causing TS2353 errors. The client-level `httpTimeoutMs` already applies
the timeout to all requests.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@ant1eicher ant1eicher force-pushed the fix/feishu-media-timeout-types branch from 3356c75 to 74f5a16 Compare March 6, 2026 18:51
@thewilloftheshadow thewilloftheshadow self-assigned this Mar 6, 2026
@thewilloftheshadow thewilloftheshadow merged commit 20db7af into openclaw:main Mar 6, 2026
29 checks passed
@thewilloftheshadow
Copy link
Copy Markdown
Member

Landed via temp rebase onto main.

  • Gate: pnpm lint && pnpm build && pnpm test extensions/feishu/src/media.test.ts
  • Land commit: 20db7af
  • Merge commit: 20db7af

Thanks @ant1eicher!

mrosmarin added a commit to mrosmarin/openclaw that referenced this pull request Mar 6, 2026
* main:
  fix: add no-ci-pr auto-response label
  docs: add changelog entry for Feishu timeouts (openclaw#38356)
  fix(feishu): remove invalid timeout properties from SDK method calls (openclaw#38267)
  docs: fix broken dashboard image on i18n pages (openclaw#38031)
vincentkoc pushed a commit to BryanTegomoh/openclaw-fork that referenced this pull request Mar 8, 2026
…penclaw#38267)

The `timeout` property is not part of the Lark SDK method signatures,
causing TS2353 errors. The client-level `httpTimeoutMs` already applies
the timeout to all requests.

Co-authored-by: Claude Opus 4.6 <[email protected]>
Saitop pushed a commit to NomiciAI/openclaw that referenced this pull request Mar 8, 2026
…penclaw#38267)

The `timeout` property is not part of the Lark SDK method signatures,
causing TS2353 errors. The client-level `httpTimeoutMs` already applies
the timeout to all requests.

Co-authored-by: Claude Opus 4.6 <[email protected]>
jenawant pushed a commit to jenawant/openclaw that referenced this pull request Mar 10, 2026
…penclaw#38267)

The `timeout` property is not part of the Lark SDK method signatures,
causing TS2353 errors. The client-level `httpTimeoutMs` already applies
the timeout to all requests.

Co-authored-by: Claude Opus 4.6 <[email protected]>
dhoman pushed a commit to dhoman/chrono-claw that referenced this pull request Mar 11, 2026
…penclaw#38267)

The `timeout` property is not part of the Lark SDK method signatures,
causing TS2353 errors. The client-level `httpTimeoutMs` already applies
the timeout to all requests.

Co-authored-by: Claude Opus 4.6 <[email protected]>
senw-developers pushed a commit to senw-developers/va-openclaw that referenced this pull request Mar 17, 2026
…penclaw#38267)

The `timeout` property is not part of the Lark SDK method signatures,
causing TS2353 errors. The client-level `httpTimeoutMs` already applies
the timeout to all requests.

Co-authored-by: Claude Opus 4.6 <[email protected]>
V-Gutierrez pushed a commit to V-Gutierrez/openclaw-vendor that referenced this pull request Mar 17, 2026
…penclaw#38267)

The `timeout` property is not part of the Lark SDK method signatures,
causing TS2353 errors. The client-level `httpTimeoutMs` already applies
the timeout to all requests.

Co-authored-by: Claude Opus 4.6 <[email protected]>
alexey-pelykh pushed a commit to remoteclaw/remoteclaw that referenced this pull request Mar 20, 2026
…penclaw#38267)

The `timeout` property is not part of the Lark SDK method signatures,
causing TS2353 errors. The client-level `httpTimeoutMs` already applies
the timeout to all requests.

Co-authored-by: Claude Opus 4.6 <[email protected]>
(cherry picked from commit 20db7af)
alexey-pelykh pushed a commit to remoteclaw/remoteclaw that referenced this pull request Mar 20, 2026
…penclaw#38267)

The `timeout` property is not part of the Lark SDK method signatures,
causing TS2353 errors. The client-level `httpTimeoutMs` already applies
the timeout to all requests.

Co-authored-by: Claude Opus 4.6 <[email protected]>
(cherry picked from commit 20db7af)
dustin-olenslager pushed a commit to dustin-olenslager/ironclaw-supreme that referenced this pull request Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: feishu Channel integration: feishu size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants