Commit e8e2ba5
authored
fix: skip agent guard 404 redirect for newly created agents (#744)
When creating an agent, the navigation state already passes newAgent: true.
The AgentGuard now checks this flag and skips the existence check, preventing
a race condition where the guard redirects to 404 before the new agent
appears in the fetched agents list.1 parent 9944702 commit e8e2ba5
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
0 commit comments