mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 17:05:56 +03:00
[PR #387] [MERGED] Harden workflow fallback behavior and surface degraded mode #693
Labels
No labels
AI Content Agents
AI Content Strategy
AI Content planning
AI Marketing Tools
AI SEO
AI personalization
AI writer
ALwrity Copi-lot
Alwrity web search
Anthropic
DeepSeek
Gemini AI
Integration
LLM
OnBoarding
OnBoarding
RAG knowledgebase Memory
bug
documentation
enhancement
good first issue
help wanted
invalid
openai
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ALwrity#693
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AJaySi/ALwrity/pull/387
Author: @AJaySi
Created: 3/6/2026
Status: ✅ Merged
Merged: 3/7/2026
Merged by: @AJaySi
Base:
main← Head:codex/remove-duplicate-task-ids-and-enforce-uniqueness📝 Commits (1)
ed625eaHarden workflow fallback handling and degraded mode UI📊 Changes
3 files changed (+169 additions, -155 deletions)
View changed files
📝
frontend/src/components/MainDashboard/components/WorkflowProgressBar.tsx(+29 -2)📝
frontend/src/services/TaskWorkflowOrchestrator.ts(+72 -132)📝
frontend/src/stores/workflowStore.ts(+68 -21)📄 Description
Motivation
Description
TaskWorkflowOrchestratorwith a minimal deterministic workflow aligned to pillarsplan → generate → publish → analyze → engage → remarketand shorter, safer defaults; this is implemented infrontend/src/services/TaskWorkflowOrchestrator.ts(generateTasksForDate).ensureUniqueTaskIds(tasks: TodayTask[])toTaskWorkflowOrchestratorto deduplicate/uniquify task IDs and rewrite dependencies to the new IDs, and use it before validation/ordering and before returning ordered tasks.useWorkflowStore(frontend/src/stores/workflowStore.ts) to importConnectionError/NetworkErrorand only attempt the local fallback when the error is a connection/server-unavailable type, while throwing/setting a typedWorkflowErrorwhen the server payload schema is invalid.isDegradedMode,degradedModeReason) and surface a visible degraded-mode banner in the UI by updatingWorkflowProgressBar(frontend/src/components/MainDashboard/components/WorkflowProgressBar.tsx) to show aCloudOffbanner when the store sets degraded mode.Testing
npm run buildin this environment to validate the frontend build, but it failed becausereact-scriptsis not installed here (automated build attempt: failed).http://127.0.0.1:3000, but the local dev server was not running so the navigation failed (ERR_EMPTY_RESPONSE) and no screenshot was produced (automated check: failed).Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.