icarus
8efafc6ba9
feat(hooks): add useModels hook for fetching agent models
2025-09-19 23:51:46 +08:00
icarus
f35987a9a9
refactor(api): rename modelsPath to getModelsPath for consistency
...
Align method naming with other path getter methods in the class for better code maintainability and consistency
2025-09-19 23:50:04 +08:00
icarus
c7ec55c69a
refactor(types): rename ApiModelsRequest to ApiModelsFilter for clarity
...
Update type name and related imports to better reflect its purpose as a filter type rather than a request type
2025-09-19 23:48:58 +08:00
icarus
c77d7dff78
feat(api): add models endpoint to agent client and type response
...
Add new models endpoint to AgentApiClient with query parameter support
Ensure type safety by adding ApiModelsResponse type and schema validation
2025-09-19 23:43:20 +08:00
Vaayne
c426876d0d
feat(transform): refactor message handling to unify user and assistant processing
2025-09-19 22:36:19 +08:00
Vaayne
027ef17a2e
feat(agents): enhance ClaudeCodeService to support MCP configurations and additional directories
2025-09-19 21:51:33 +08:00
Vaayne
f0ac74dccf
feat(agents): enhance error messages for agent and session operations; update accessible paths handling
2025-09-19 20:20:20 +08:00
Vaayne
d6468f33c5
feat(agents): implement model validation for agent and session creation/updating
2025-09-19 20:20:20 +08:00
Vaayne
1515f511a1
feat(agents): refactor agent invocation to use session object and enhance error handling
2025-09-19 20:20:20 +08:00
Vaayne
1c2211aefb
feat(agents): add ensurePathsExist method to validate and create accessible paths
2025-09-19 20:20:20 +08:00
Vaayne
49f9dff9da
feat(models): update models filtering to use providerType and enhance API schemas
2025-09-19 20:20:19 +08:00
icarus
92ba1e4fc3
fix(SessionMessageService): stringify user message content to ensure proper formatting
2025-09-19 17:54:25 +08:00
icarus
7060aab33d
fix: reverse message order and fix mutation revalidation
...
Reverse message display order for better UX and prevent unnecessary revalidation during message creation
2025-09-19 17:52:17 +08:00
icarus
0cce8220ce
Merge branch 'feat/agents-new' of github.com:CherryHQ/cherry-studio into feat/agents-new
2025-09-19 17:46:32 +08:00
icarus
1722d9f435
feat(i18n): add error message for failed message creation
...
Add "create_message" error translation in multiple language files
2025-09-19 17:44:58 +08:00
icarus
078fd57eb5
fix(agent): update message id and improve content handling
...
- Change default message id from -1 to 77777 in useSession
- Remove schema validation for session response temporarily
- Add proper content parsing for agent session messages
2025-09-19 17:44:08 +08:00
icarus
4bd6087dc0
feat(chat): add agent session inputbar component
...
Implement input bar for agent sessions with message sending functionality
2025-09-19 17:39:24 +08:00
icarus
e45231376c
feat(useSession): add optimistic updates for message creation
...
Implement optimistic UI updates when creating new messages to improve perceived performance. The changes include cloning the current session data, adding a draft message immediately, and handling rollback on error.
2025-09-19 17:39:04 +08:00
icarus
01c7e509fd
feat(hooks): add createSessionMessage to useSession hook
...
Expose new function to create messages for agent sessions and automatically refresh session data
2025-09-19 17:01:47 +08:00
icarus
5ddf9683b4
feat(chat): add session messages view and active state tracking
...
Implement agent session messages display component and track active topic/session state
Add AgentSessionMessages component and integrate with chat view
Update topic and session selection to set active state in store
2025-09-19 16:39:02 +08:00
Vaayne
d91df12dbc
feat(models): refactor models service to use new API models schema and types
2025-09-19 16:36:11 +08:00
icarus
64e3de9ada
feat(chat): add activeTopicOrSession state to track current view
...
Add new state field and action to track whether the user is viewing topics or sessions in the chat interface. This enables proper UI state management when switching between views.
2025-09-19 16:27:50 +08:00
Vaayne
2cf2f04a70
feat(chat): enhance chat completion error handling and streaming support
...
feat(messages): improve message validation and add streaming support
feat(tests): add HTTP tests for chat and message endpoints
2025-09-19 16:16:33 +08:00
Vaayne
73380d76df
feat(models): enhance models endpoint with filtering and pagination support
2025-09-19 16:16:33 +08:00
Vaayne
38076babcf
feat(messages): add messages route and service for handling Anthropic messages
2025-09-19 16:16:33 +08:00
icarus
00cc410dcc
refactor(SessionItem): remove confirmation modal for delete action
...
Simplify delete flow by removing the confirmation modal and directly calling onDelete
2025-09-19 15:59:18 +08:00
icarus
7fc676bbc3
fix(useSession): provide default empty array for messages when undefined
...
Make messages field optional in GetAgentSessionResponseSchema to match actual API behavior and prevent potential undefined access
2025-09-19 15:56:09 +08:00
icarus
798126d39c
feat(session): add session modal component to session item
...
Implement session modal for editing session details, using existing disclosure hooks
2025-09-19 15:46:52 +08:00
icarus
874d74cf6e
feat(chat): add tab state management to redux store
...
Move tab state from component local state to redux store for better state management across components
2025-09-19 15:43:39 +08:00
icarus
d73834e7f6
feat(i18n): add session add/edit translation keys
...
Add new translation keys for session add/edit functionality in multiple languages
2025-09-19 15:28:11 +08:00
icarus
cb3afaceab
refactor(agent): consolidate agent update logic into useAgents hook
2025-09-19 15:27:23 +08:00
icarus
fc0ba5d0d5
feat(hooks): add useSession hook for managing agent sessions
2025-09-19 15:27:10 +08:00
icarus
7ce4fc50ea
refactor(hooks): remove unused useUpdateAgent hook
2025-09-19 15:24:39 +08:00
icarus
b5ef8a93ca
refactor(useAgent): simplify mutate call in agent update
...
The previous implementation unnecessarily spread the previous state when only the result is needed. This simplifies the mutation logic while maintaining the same behavior.
2025-09-19 15:24:33 +08:00
icarus
8ead4e9c0f
feat(sessions): add session creation modal and improve session item styling
...
- Implement SessionModal component for creating/editing sessions
- Replace Button wrapper with fragment in SessionItem for cleaner styling
- Add translation support and proper form handling for session creation
2025-09-19 15:21:27 +08:00
icarus
432d84cda5
refactor(sessions): simplify session update API by using form object
...
Remove redundant sessionId parameter from updateSession methods since it's already included in the UpdateSessionForm. This makes the API more consistent and reduces potential for mismatched IDs.
2025-09-19 15:08:53 +08:00
icarus
d3378dcf78
refactor(types): use inferred type for CreateSessionRequest
2025-09-19 14:56:50 +08:00
icarus
f0724af2aa
refactor(agent-modal): move AgentModal component to agent subdirectory
...
Restructure the component organization by moving AgentModal.tsx into a dedicated agent subdirectory under Popups. This improves maintainability by grouping related agent components together.
Update all import paths to reflect the new location. The component functionality remains unchanged.
2025-09-19 14:55:26 +08:00
icarus
f127150ea1
feat(sessions): implement session management ui and state
...
- Rename Container to ButtonContainer for consistency
- Add activeSessionId state to track active sessions per agent
- Implement Sessions and SessionItem components with loading state
- Add session selection and deletion functionality
2025-09-19 14:54:04 +08:00
icarus
b3ef6d4534
feat(i18n): add error messages for session operations
...
Add error messages for session deletion and update failures in all supported languages. Also include a generic delete failure message.
2025-09-19 14:09:05 +08:00
icarus
1ce791d517
feat(AgentsTab): add loading spinner for agents list
...
Show spinner while agents are loading to improve user experience
2025-09-19 14:07:56 +08:00
icarus
3d561ad8e3
refactor(sessions): extract sessions component and update hook to use agentId
...
Move sessions rendering logic to a separate component and modify useSessions hook to work with agentId instead of full agent entity. This improves code organization and simplifies the hook interface.
2025-09-19 14:07:23 +08:00
icarus
14509d1077
feat(hooks): add useAgent hook for managing agent state and updates
2025-09-19 14:07:03 +08:00
icarus
a424e3a039
feat(agents): add success toast notifications for agent operations
2025-09-19 13:32:16 +08:00
icarus
eaa5ec5545
refactor(agents): remove unused useRemoveAgent hook and use deleteAgent from useAgents
2025-09-19 13:30:50 +08:00
icarus
5850e5da66
refactor(AgentItem): simplify component structure and remove unused logger
...
- Remove Button wrapper from AgentLabel component
- Replace div container with Button component for better semantics
- Clean up unused logger service and related click handler
2025-09-19 13:28:36 +08:00
icarus
eb3ff6f570
fix(agents): convert null values to undefined in database responses
...
Ensure type consistency by converting null values from database to undefined as specified in type definitions
2025-09-19 13:14:20 +08:00
icarus
ae9c78e643
Merge branch 'feat/agents-new' of github.com:CherryHQ/cherry-studio into feat/agents-new
2025-09-19 12:58:21 +08:00
icarus
445528aff7
refactor(agent): replace interface with zod schema for message request
...
Add createMessage method to AgentApiClient to handle posting messages to sessions
2025-09-19 12:58:14 +08:00
Vaayne
d13c25444c
feat(agents, sessions): enhance agent and session schemas with detailed properties and CRUD API documentation
2025-09-19 12:56:20 +08:00