Skip to content

✨ migration to the context api#11

Open
fjunqueira wants to merge 1 commit intomainfrom
migrate-context-api
Open

✨ migration to the context api#11
fjunqueira wants to merge 1 commit intomainfrom
migrate-context-api

Conversation

@fjunqueira
Copy link
Copy Markdown

@fjunqueira fjunqueira commented Feb 12, 2026

This pull request introduces several improvements and refactors across the web app, focusing on agent configuration handling, UI consistency, and tenant filtering. The most significant changes are the migration from legacy agent config paths to a new context property, improved tenant filtering logic, and UI consistency tweaks. Below are the key changes, grouped by theme:

Agent Configuration Migration and Handling:

  • Migrated agent configuration from the legacy config.configurable property to the new context property throughout the codebase, including agent creation, updating, and retrieval logic in use-agents.tsx. This ensures future compatibility and simplifies configuration access. [1] [2] [3]
  • Updated configuration extraction logic in ui-config.ts to prefer agent.context over config.configurable, ensuring default values and tool configurations are correctly sourced from the new path. [1] [2]
  • Refactored chat thread and message components to use the new context property for agent configuration, replacing legacy config spreading. [1] [2] [3]

Tenant Filtering and Agent Selection:

  • Enhanced agent filtering in Agents.tsx to check tenant association using the new context property, legacy config.configurable, and metadata, ensuring agents are correctly scoped to tenants.
  • Minor normalization and formatting improvements in tenant loading logic. [1] [2]

UI and Styling Consistency:

  • Refactored className ordering and formatting in agent-card.tsx components for improved readability and consistent styling, including button and card header/footer layouts. [1] [2] [3] [4] [5] [6] [7]
  • Minor import and formatting cleanups in chat and agent components. [1] [2]

Dependency and Environment Changes:

  • Updated @langchain/langgraph-sdk dependency version to latest in package.json.
  • Changed the default NEXT_PUBLIC_TYPEBOT_BASE_URL fallback to a local address for development purposes.

Authentication Logic Improvements:

  • Improved attribute handling and formatting in Cognito authentication provider for user metadata and error handling. [1] [2] [3] [4] [5] [6]

These changes collectively modernize agent configuration management, improve tenant scoping, and enhance UI consistency across the app.

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