From bf7c0d7d618956f7796926fcd3ae8fe130e75797 Mon Sep 17 00:00:00 2001 From: Snider Date: Sun, 8 Feb 2026 14:58:44 +0000 Subject: [PATCH] fix(models): add context array cast to AgentPlan The context column (longText) was missing its array cast, causing "Array to string conversion" errors when creating plans via MCP. Co-Authored-By: Claude Opus 4.6 --- Models/AgentPlan.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Models/AgentPlan.php b/Models/AgentPlan.php index 68fd2d8..3ba13cd 100644 --- a/Models/AgentPlan.php +++ b/Models/AgentPlan.php @@ -63,6 +63,7 @@ class AgentPlan extends Model ]; protected $casts = [ + 'context' => 'array', 'phases' => 'array', 'metadata' => 'array', ];