mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-03-17 22:13:08 +00:00
Add quick-add feature with improved workflows (#802)
* Changes from feature/quick-add * feat: Clarify system prompt and improve error handling across services. Address PR Feedback * feat: Improve PR description parsing and refactor event handling * feat: Add context options to pipeline orchestrator initialization * fix: Deduplicate React and handle CJS interop for use-sync-external-store Resolve "Cannot read properties of null (reading 'useState')" errors by deduplicating React/react-dom and ensuring use-sync-external-store is bundled together with React to prevent CJS packages from resolving to different React instances.
This commit is contained in:
@@ -29,8 +29,13 @@ export interface UseModelOverrideResult {
|
||||
|
||||
/**
|
||||
* Normalize PhaseModelEntry or string to PhaseModelEntry
|
||||
* Handles undefined/null gracefully (e.g., when phaseModels from server settings
|
||||
* is missing a recently-added phase key)
|
||||
*/
|
||||
function normalizeEntry(entry: PhaseModelEntry | string): PhaseModelEntry {
|
||||
function normalizeEntry(entry: PhaseModelEntry | string | undefined | null): PhaseModelEntry {
|
||||
if (!entry) {
|
||||
return { model: 'claude-sonnet' as ModelId };
|
||||
}
|
||||
if (typeof entry === 'string') {
|
||||
return { model: entry as ModelId };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user