This commit restores the codebase to the exact state it was in at commit 8504a85f, effectively reverting all changes made after that point including:
- Reverts agent header UI improvements
- Restores avatar, icon, and emoji functionality
- Brings back deleted files: style-picker.tsx, _avatar-generator.ts, get-agent-style.ts
- Removed hardcoded maximum parallel agent runs and replaced with a configurable property in the Configuration class.
- Updated API and agent limit checks to utilize the new configuration property.
- Simplified error handling by removing limit from error details in the frontend components.
- Adjusted UI components to reflect changes in agent limit data structure.
- Added functionality to check the maximum parallel agent runs allowed within a 24-hour period.
- Introduced `AgentRunLimitError` to handle cases where the limit is exceeded.
- Updated API to return appropriate error responses for agent run limits.
- Created `AgentRunLimitDialog` component to inform users when the limit is reached, displaying currently running agents and options to stop them.
- Integrated limit checks into agent initiation and running processes across relevant components.