Skip to content

fix: pass ownerTenantId to LLMLabel and related components for improved model fetching - #16800

Merged
wangq8 merged 1 commit into
infiniflow:mainfrom
dcc123456:fix/agent-error-0710
Jul 10, 2026
Merged

wangq8 merged 1 commit into
infiniflow:mainfrom
dcc123456:fix/agent-error-0710

Conversation

@dcc123456

Copy link
Copy Markdown
Collaborator

Summary

fix: pass ownerTenantId to LLMLabel and related components for improved model fetching

@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. 🧰 typescript Pull requests that update Typescript code labels Jul 10, 2026
@dcc123456
dcc123456 requested a review from wangq8 July 10, 2026 03:58
@dcc123456 dcc123456 added 🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration labels Jul 10, 2026
@coderabbitai

coderabbitai Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

LLM selection components now propagate ownerTenantId into model fetching, label resolution, and validation. Labels can resolve display metadata from tenant-scoped models, while compilation and chat forms provide tenant context to their model fields.

Changes

Tenant-scoped LLM selection

Layer / File(s) Summary
Tenant-scoped label resolution
web/src/components/llm-select/llm-label.tsx, web/src/components/llm-select/next.tsx
LLMLabel accepts tenant context, fetches tenant-scoped models, resolves display metadata, and receives ownerTenantId from the select trigger.
Canvas model validation
web/src/pages/agent/canvas/node/card.tsx
Canvas model validation matches IDs directly against tenant-scoped models and forwards the tenant identifier to LLMLabel.
Selection field context wiring
web/src/pages/agent/form/compilation-form/index.tsx, web/src/pages/next-chats/chat/...
Compilation and chat model fields receive tenant identifiers from form context, chat data, or the current dialog.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

Suggested reviewers: wangq8

Poem

I’m a small rabbit with models in tow,
Passing tenant paths where selections go.
Labels find icons, names bloom bright,
Canvas checks IDs by tenant right.
Hop, hop—scoped choices render light!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly matches the main change: passing ownerTenantId through LLMLabel and related components to improve model fetching.
Description check ✅ Passed The description matches the required Summary section and states the PR's purpose, though it is brief and could add more background.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dcc123456
dcc123456 marked this pull request as draft July 10, 2026 05:10
@dcc123456
dcc123456 marked this pull request as ready for review July 10, 2026 05:10
@wangq8
wangq8 merged commit 868e524 into infiniflow:main Jul 10, 2026
15 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration size:M This PR changes 30-99 lines, ignoring generated files. 🧰 typescript Pull requests that update Typescript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants