Skip to content

Bump agents-ui to 0.15.18 and disable chat history for in-app widgets …#2712

Merged
sarah-inkeep merged 4 commits into
mainfrom
prd-6311
Mar 17, 2026
Merged

Bump agents-ui to 0.15.18 and disable chat history for in-app widgets …#2712
sarah-inkeep merged 4 commits into
mainfrom
prd-6311

Conversation

@sarah-inkeep
Copy link
Copy Markdown
Contributor

…since they don't have appIds remove lingering references to the deprecated agentsUrl

…since they don't have appIds remove lingering references to the deprecated agentsUrl
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agents-api Ready Ready Preview, Comment Mar 16, 2026 11:52pm
agents-docs Ready Ready Preview, Comment Mar 16, 2026 11:52pm
agents-manage-ui Ready Ready Preview, Comment Mar 16, 2026 11:52pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 16, 2026

🦋 Changeset detected

Latest commit: 2183ced

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@inkeep/agents-manage-ui Patch
@inkeep/agents-api Patch
@inkeep/agents-cli Patch
@inkeep/agents-core Patch
@inkeep/agents-email Patch
@inkeep/agents-mcp Patch
@inkeep/agents-sdk Patch
@inkeep/agents-work-apps Patch
@inkeep/ai-sdk-provider Patch
@inkeep/create-agents Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor

@pullfrog pullfrog Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean migration from the deprecated agentUrl prop to baseUrl across all widget usages. No residual agentUrl references remain in source. shouldBypassCaptcha, isChatHistoryButtonVisible: false, port correction (3003→3002), and the metadata editor updates all look correct. One minor question inline about a dropped conditional guard.

Pullfrog  | Fix all ➔Fix 👍s ➔View workflow runpullfrog.com𝕏

isViewOnly: hasHeadersError,
conversationId,
agentUrl: agentId ? `${PUBLIC_INKEEP_AGENTS_API_URL}/run/api/chat` : undefined,
baseUrl: `${PUBLIC_INKEEP_AGENTS_API_URL}`,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old code was conditional: agentUrl: agentId ? ... : undefined. The new code sets baseUrl unconditionally. Since ChatWidget declares agentId as optional, is it intentional to always provide baseUrl even when there's no agentId? If the widget can function without an agent (e.g. as a generic chat), this is fine — just confirming the guard removal was deliberate.

Copy link
Copy Markdown
Contributor

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review Summary

(0) Total Issues | Risk: Low

This is a clean, well-scoped PR that migrates from the deprecated agentUrl prop to the new baseUrl pattern in @inkeep/agents-ui. The changes correctly:

  • Update all internal widget usages to use baseUrl instead of agentUrl
  • Disable chat history for in-app widgets (copilot, playground, chat-ui-guide) since they use headers-based auth without appId
  • Add shouldBypassCaptcha: true for internal development tools
  • Update UI copy and navigation to guide users toward the Apps flow instead of API keys
  • Add generated documentation for new Chat History CSS classes

💭 Consider (3) 💭

Inline Comments:

  • 💭 Consider: copilot-chat.tsx:242 Unnecessary template literal wrapping single variable
  • 💭 Consider: chat-widget.tsx:232 Unnecessary template literal wrapping single variable
  • 💭 Consider: metadata-editor.tsx:71 Unnecessary template literal wrapping single variable

💭 1) system Documentation for Chat History feature

Issue: The generated CSS classes for Chat History Components are documented, but the feature itself (what chat history is, how to enable/disable it via isChatHistoryButtonVisible, and the appId requirement) is not documented.
Why: Users will see CSS classes like ikp-ai-chat-history__item but won't find docs explaining the feature or the new prop.
Fix: Consider adding a brief section to the chat components docs explaining chat history and the isChatHistoryButtonVisible prop. This could be a follow-up PR.
Refs: style-classnames.mdx:190-206

💭 2) system Version consistency via pnpm catalog

Issue: Prior to this PR, @inkeep/agents-ui versions were inconsistent across packages (0.15.13, 0.15.14). This PR aligns them all to 0.15.18.
Why: Using pnpm workspace catalog for external dependencies like @inkeep/agents-ui would prevent future version drift.
Fix: Consider adding @inkeep/agents-ui to the workspace catalog for consistent versioning. This is a future improvement, not blocking.


✅ Looks Good To Merge

Summary: Clean PR that correctly migrates widget props from the deprecated agentUrl to the new baseUrl + appId pattern. The changes are well-scoped, consistent across all affected files, and the changeset is appropriate. The template literal suggestions are purely stylistic nitpicks. Ship it! 🚀

Discarded (5)
Location Issue Reason Discarded
use-in-your-app-section.tsx:44-45 Placeholder values instead of actual runtime values Pre-existing behavior - function already used placeholder text before this PR
chat-ui-guide.tsx:29-31 Preview disables chat history but generated code doesn't Intentional design - in-app widgets don't have appIds, generated code assumes users will
use-in-your-app-section.tsx:32 No tests for code snippet generation Pre-existing - no tests existed before this PR
component-name-utils.ts No tests for utility functions Pre-existing - not introduced by this PR
@inkeep/agents-ui versions Prior version inconsistency Already fixed by this PR - all aligned to 0.15.18
Reviewers (8)
Reviewer Returned Main Findings Consider While You're Here Inline Comments Pending Recs Discarded
pr-review-standards 0 0 0 0 0 0 0
pr-review-product 3 0 0 0 0 0 2
pr-review-consistency 4 0 0 0 0 0 0
pr-review-breaking-changes 3 0 0 0 0 0 0
pr-review-docs 3 0 1 0 0 0 0
pr-review-tests 2 0 0 0 0 0 2
pr-review-frontend 3 0 0 0 3 0 0
pr-review-devops 4 0 1 0 0 0 1
Total 22 0 2 0 3 0 5

Note: All 8 reviewers returned clean findings. Most findings were either positive confirmations (INFO) or pre-existing issues not attributable to this PR.

dark: '/assets/inkeep-icons/icon-sky.svg',
},
agentUrl: `${PUBLIC_INKEEP_AGENTS_API_URL}/run/api/chat`,
baseUrl: `${PUBLIC_INKEEP_AGENTS_API_URL}`,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💭 Consider: Unnecessary template literal

Issue: Template literal wraps a single variable with no interpolation needed.

Why: Previously, agentUrl concatenated the path (/run/api/chat), so the template literal was needed. Now with just baseUrl, it's redundant.

Fix: (1-click apply)

Suggested change
baseUrl: `${PUBLIC_INKEEP_AGENTS_API_URL}`,
baseUrl: PUBLIC_INKEEP_AGENTS_API_URL,

Refs:

isViewOnly: hasHeadersError,
conversationId,
agentUrl: agentId ? `${PUBLIC_INKEEP_AGENTS_API_URL}/run/api/chat` : undefined,
baseUrl: `${PUBLIC_INKEEP_AGENTS_API_URL}`,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💭 Consider: Unnecessary template literal

Issue: Template literal wraps a single variable with no interpolation needed.

Fix: (1-click apply)

Suggested change
baseUrl: `${PUBLIC_INKEEP_AGENTS_API_URL}`,
baseUrl: PUBLIC_INKEEP_AGENTS_API_URL,

metadata;
const { PUBLIC_INKEEP_AGENTS_API_URL } = useRuntimeConfig();
const agentUrl = `${PUBLIC_INKEEP_AGENTS_API_URL}/run/api/chat`;
const baseUrl = `${PUBLIC_INKEEP_AGENTS_API_URL}`;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💭 Consider: Unnecessary template literal

Issue: Template literal wraps a single variable with no interpolation needed.

Fix: (1-click apply)

Suggested change
const baseUrl = `${PUBLIC_INKEEP_AGENTS_API_URL}`;
const baseUrl = PUBLIC_INKEEP_AGENTS_API_URL;

@github-actions github-actions Bot deleted a comment from claude Bot Mar 16, 2026
Copy link
Copy Markdown
Contributor

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review Summary

(0) Total Issues | Risk: Low

Delta Review Summary

This is a re-review scoped to changes since the last automated review (ea5b81e34cb2).

Delta commits:

  1. 906e950b7 — Removes unnecessary string interpolation
  2. 8b68134d9 — Merge commit from main
  3. 53942459d — Unrelated PR #2708 merged into main (OAuth credentials CRUD)

Assessment: The only change relevant to this PR's scope is the removal of unnecessary template literals in three files:

  • copilot-chat.tsx:242 — Now uses baseUrl: PUBLIC_INKEEP_AGENTS_API_URL,
  • chat-widget.tsx:232 — Now uses baseUrl: PUBLIC_INKEEP_AGENTS_API_URL,
  • metadata-editor.tsx:71 — Now uses const baseUrl = PUBLIC_INKEEP_AGENTS_API_URL;

This directly addresses the 3 "Consider" inline comments from the previous review. No new issues introduced.

🕐 Pending Recommendations (2)

  • 💭 system Documentation for Chat History feature (optional follow-up)
  • 💭 system Version consistency via pnpm catalog (optional improvement)

✅ APPROVE

Summary: Clean delta that addresses prior review feedback. The unnecessary template literals have been removed as suggested. The original PR scope (migrating from agentUrl to baseUrl, disabling chat history for in-app widgets, updating UI copy) was already approved in the previous review. Ship it! 🚀

Reviewers (0)
Reviewer Returned Main Findings Consider While You're Here Inline Comments Pending Recs Discarded
Total 0 0 0 0 0 2 0

Note: Delta review — no sub-reviewers dispatched since the delta only contains fixes for prior review feedback.

@sarah-inkeep sarah-inkeep enabled auto-merge March 16, 2026 23:50
Copy link
Copy Markdown
Contributor

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review Summary

(0) Total Issues | Risk: Low

Delta Review Summary

This is a re-review scoped to changes since the last automated review (906e950b7dbb).

Delta commits:

  • 2183ced88 — Merge branch 'main' into prd-6311

Assessment: The delta contains only a merge from main (PR #2701 — DAL scope helper migration). This is entirely unrelated to this PR's scope. No changes to the 14 files in this PR.

The prior reviews comprehensively covered this PR:

  • ✅ Migration from agentUrl to baseUrl — verified correct
  • ✅ Chat history disabled for in-app widgets — verified correct
  • ✅ Template literal cleanup — addressed in 906e950b7
  • ✅ UI copy updates (API Keys → Apps) — verified correct
  • ✅ Changeset appropriate — verified correct

🕐 Pending Recommendations (2)

  • 💭 system Documentation for Chat History feature (optional follow-up)
  • 💭 system Version consistency via pnpm catalog (optional improvement)

✅ APPROVE

Summary: No new issues in the delta — it's just a merge from main with unrelated changes. The PR remains clean and ready to ship. The original migration work was thoroughly reviewed in prior passes. 🚀

Reviewers (0)
Reviewer Returned Main Findings Consider While You're Here Inline Comments Pending Recs Discarded
Total 0 0 0 0 0 2 0

Note: Delta review — no sub-reviewers dispatched since the delta contains only merge commits from main with no changes to files in this PR's scope.

@github-actions github-actions Bot deleted a comment from claude Bot Mar 16, 2026
@sarah-inkeep sarah-inkeep added this pull request to the merge queue Mar 17, 2026
Merged via the queue into main with commit 2a50786 Mar 17, 2026
11 checks passed
@sarah-inkeep sarah-inkeep deleted the prd-6311 branch March 17, 2026 00:13
@github-actions
Copy link
Copy Markdown
Contributor

🔎💬 Inkeep AI search and chat service is syncing content for source 'Inkeep Agent Framework Docs'

@itoqa
Copy link
Copy Markdown

itoqa Bot commented Mar 17, 2026

Ito Test Report ✅

8 test cases ran. 8 passed.

✅ The passing coverage confirms the base URL migration UI contract in metadata, playground history-button suppression, malformed-header safety behavior, demo-width behavior, and XSS/header hardening checks. 🔍 Non-passing outcomes were reviewed against repository code and runtime-change artifacts, and only code-supported defects are eligible for failed classification.

✅ Passed (8)
Test Case Summary Timestamp Screenshot
ROUTE-1 Agent settings display Chat API Base URL as host-only and endpoint reachability was verified. 0:00 ROUTE-1_0-00.png
ROUTE-2 Create App navigates to the apps route and browser back returns to the editor cleanly. 0:00 ROUTE-2_0-00.png
LOGIC-2 Try it playground shows no history/list button before or after chat interaction. 11:32 LOGIC-2_11-32.png
LOGIC-3 Malformed custom headers trigger invalid JSON handling and enforce view-only chat state. 11:07 LOGIC-3_11-07.png
EDGE-1 Tooltip guidance correctly explains appending /run/api/chat and using baseUrl with appId. 0:00 EDGE-1_0-00.png
EDGE-5 Demo app remained free of horizontal overflow at 760/769/820 width breakpoints. 35:01 EDGE-5_35-01.png
ADV-1 Header-injection payload was rejected with validation behavior and no transport crash. 28:19 ADV-1_28-19.png
ADV-2 XSS payload rendered as inert text without script execution. 29:26 ADV-2_29-26.png
📋 View Recording

Screen Recording

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant