Skip to content

Sync oci-enterprise-ai-chat to v0.5.0#2981

Open
ralungei wants to merge 1 commit into
oracle-devrel:mainfrom
ralungei:sync-oci-enterprise-ai-chat-v0.5.0
Open

Sync oci-enterprise-ai-chat to v0.5.0#2981
ralungei wants to merge 1 commit into
oracle-devrel:mainfrom
ralungei:sync-oci-enterprise-ai-chat-v0.5.0

Conversation

@ralungei
Copy link
Copy Markdown
Collaborator

Summary

Syncs the ai/gen-ai-agents/oci-enterprise-ai-chat/files/ asset from upstream development (v0.4.0 → v0.5.0).

Highlights

  • MCP — static-client OAuth (oauth2-user): new auth type with one-click presets for Google, GitHub, Slack and Microsoft. Lets users connect MCP servers behind OAuth providers that don't support RFC 7591 dynamic client registration. User pre-creates the OAuth client in the provider's console, pastes client_id / client_secret + the authorize/token URLs, and the app runs PKCE against them.
  • MCP — client-side function_call execution: some models (gpt-oss-120b et al.) emit MCP tool invocations as plain OpenAI-style function_call events rather than running them server-side. The client now detects mcp__<server>__<tool> names, executes the tool against the configured MCP server, and chains a follow-up Responses request with function_call_output so the model can finish.
  • Stream handling cleanup: stops fabricating "PrematureStreamClose" errors when OCI ends the SSE without response.completed after a delegated function_call — that's normal flow, and the old error message confused users. Chips are now only marked failed on real abort / network / stall errors.
  • Style: Oracle Sans as the global font baseline on body, so any loose <div>/<Box> inherits it without needing a <Typography> wrapper.
  • Header: restored the model name label next to the icon.
  • Chore: package rename to oci-enterprise-ai-chat, version bump 0.4.00.5.0, removed SDD Generator add-on from chat input + OAuth helper text.

Files touched

14 files, +797 / -257 — all under ai/gen-ai-agents/oci-enterprise-ai-chat/files/. No changes outside that asset.

Test plan

  • npm run dev — app boots, no console errors
  • OAuth oauth2.1 flow (existing) still works against an MCP server with dynamic registration
  • OAuth oauth2-user flow — connect Google Gmail with preset, complete consent, tool call returns data
  • gpt-oss-120b — MCP tool invoked, runs client-side, model receives output and finishes
  • Oracle Sans applied across components

Highlights since v0.4.0:
- MCP: new oauth2-user auth type with one-click presets for Google,
  GitHub, Slack and Microsoft (manual OAuth client for providers that
  don't support dynamic registration).
- MCP: client-side execution of delegated function_call tools for
  models like gpt-oss-120b that emit MCP calls as plain OpenAI
  function_call events; the client runs the tool and chains a
  follow-up Responses request with function_call_output.
- Stream handling: stop fabricating "PrematureStreamClose" errors when
  OCI closes the SSE after a delegated function_call; only mark chips
  as failed on real abort/network/stall errors.
- Style: Oracle Sans as the global font baseline on body, so any
  loose element inherits it without wrapping in Typography.
- Header: restore model name label next to the icon.
- Chore: package rename to oci-enterprise-ai-chat, version bump 0.5.0,
  remove SDD Generator add-on from chat input and OAuth helper text.
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant