d9cd300fee
* auto-claude: subtask-1-1 - Add expandable description container with toggle button - Add isExpanded and hasOverflow state for expand/collapse functionality - Add useLayoutEffect to detect content overflow (scrollHeight > clientHeight) - Apply max-h-[200px] with overflow-hidden when collapsed - Add gradient overlay at bottom when content is truncated - Add centered ghost button with ChevronDown/ChevronUp icons - Add i18n translations for showMore/showLess in en and fr Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: remove unrelated changes from branch (qa-requested) Reset files that were not related to the expand button feature back to their develop branch state: - .gitignore - apps/backend/agents/ (base.py, coder.py, planner.py, session.py) - apps/backend/core/ (client.py, simple_client.py) - apps/frontend/src/renderer/App.tsx - apps/frontend/src/renderer/components/AuthStatusIndicator.tsx - apps/frontend/src/renderer/components/KanbanBoard.tsx - apps/frontend/src/renderer/stores/task-store.ts - apps/frontend/src/shared/i18n/locales/*/common.json - tests/test_auth.py - tests/test_issue_884_plan_schema.py The expand button feature implementation remains intact. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: resolve CI failures in Python tests and lint - Fix test_integration_phase4.py: Register module in sys.modules before exec_module to allow dataclass decorator to find module by name - Fix ruff format issues in parallel_orchestrator_reviewer.py: Break long f-string lines for logger.error and RuntimeError calls - Fix ruff format issues in pydantic_models.py: Combine Field description on single line Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: resolve PR review findings - reset expand state, fix test mocks, remove dead code - Reset isExpanded when switching tasks to prevent stale expanded state leaking between tasks - Fix all remaining get_token_from_keychain mock signatures to accept _config_dir parameter - Remove disabled old orchestrator code block in parallel_orchestrator_reviewer.py Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: resolve PR review critical and medium issues - Restore missing constants in base.py that coder.py imports (MAX_CONCURRENCY_RETRIES, INITIAL_RETRY_DELAY_SECONDS, MAX_RETRY_DELAY_SECONDS) - Fix test_issue_884_plan_schema.py mock return types to match run_agent_session 3-tuple signature (str, str, dict) - Add accessibility attributes to expand/collapse button in TaskMetadata.tsx (aria-expanded, aria-controls, aria-hidden on icons, id on content) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: restore loadClaudeProfiles() and add trailing newline to .gitignore - Restore loadClaudeProfiles() call in App.tsx initial load useEffect to fix onboarding detection for OAuth-only users - Add trailing newline to .gitignore per POSIX convention Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: Test User <test@example.com>
21 lines
419 B
Python
21 lines
419 B
Python
"""
|
|
Base Module for Agent System
|
|
=============================
|
|
|
|
Shared imports, types, and constants used across agent modules.
|
|
"""
|
|
|
|
import logging
|
|
|
|
# Configure logging
|
|
logger = logging.getLogger(__name__)
|
|
|
|
# Configuration constants
|
|
AUTO_CONTINUE_DELAY_SECONDS = 3
|
|
HUMAN_INTERVENTION_FILE = "PAUSE"
|
|
|
|
# Concurrency retry constants
|
|
MAX_CONCURRENCY_RETRIES = 5
|
|
INITIAL_RETRY_DELAY_SECONDS = 2
|
|
MAX_RETRY_DELAY_SECONDS = 32
|