Commit Graph

4 Commits

Author SHA1 Message Date
Svrnty
797ee55caf fix: Make AgentDto configuration fields nullable for list endpoint compatibility
The backend /api/agents list endpoint returns a lightweight DTO without
configuration fields (temperature, maxTokens, systemPrompt, enableMemory,
conversationWindowSize). This caused a TypeError when parsing the response
as these fields were required in AgentDto.

Changes:
- Made 5 configuration fields nullable in AgentDto
- Updated constructor to accept optional values
- Fixed fromJson() to safely handle null values with explicit checks
- Maintains backward compatibility with full agent detail responses

This fix resolves the "Error Loading Agents" issue and allows the agents
page to display correctly. List endpoint now parses successfully while
detail endpoints still provide full configuration.

Fixes: TypeError: null: type 'Null' is not a subtype of type 'num'

Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-27 00:01:21 -04:00
Svrnty
a7cbcc331b docs: Add v1.1.0 performance update to changelog
Document performance optimizations for frontend team:
- Database indexes added
- SendMessage context optimization
- Package compatibility fix
- No breaking changes to API contract

Frontend migration time: ~15 minutes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-26 23:34:55 -04:00
Svrnty
a24f87a0d3 perf: Add database indexes and optimize queries for MVP
Performance improvements for local development:
- Add indexes: Agents.Name, Conversations.Title, AgentExecutions.CompletedAt, ConversationMessages.CreatedAt
- Remove redundant ConversationMessages index (covered by composite)
- Add .Take() limit to SendMessage context query to prevent fetching excessive history
- Downgrade Microsoft.Extensions.Http from 9.0.10 to 8.0.1 for .NET 8 compatibility

All query handlers already had .AsNoTracking() for read operations.

Impact: Faster search/filter operations even with 10-20 agents, prevents N+1 on long conversations.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-26 23:30:53 -04:00
Svrnty
229a0698a3 Initial commit: CODEX_ADK monorepo
Multi-agent AI laboratory with ASP.NET Core 8.0 backend and Flutter frontend.
Implements CQRS architecture, OpenAPI contract-first API design.

BACKEND: Agent management, conversations, executions with PostgreSQL + Ollama
FRONTEND: Cross-platform UI with strict typing and Result-based error handling

Co-Authored-By: Jean-Philippe Brule <jp@svrnty.io>
2025-10-26 23:12:32 -04:00