Commit 0c90ece
fix(actions): mount the object-less /actions//:action shape; bump objectui to e651c936870e (#4005)
Two things, both closing the #3913/#3962 arc at the HTTP surface.
1. The object-less action shape was unreachable. #3913 taught
handleActionsRequest to route a single-segment path at the canonical 'global'
key, and that code was correct and unit-tested — but nothing delivered the path:
the dispatcher mounts routes explicitly, `:object` does not match an empty
segment, and no registration covered `POST /actions//:action`. Over real HTTP it
fell through to Hono's notFound with a bare {error:'Not found'} and the actions
domain never ran, so the exact URL #3913 was filed against still did not
dispatch. The tests call handleActions()/dispatch() directly and so could not
see it — the same class of bug dispatcher-plugin.routes.test.ts exists for after
/mcp and /keys shipped that way. Registered the route (Hono matches the literal
`//` without shadowing `:object/:action`, verified against the router) and
extended that guard to cover the action shapes.
Found by dogfooding the running showcase app.
2. Bumped .objectui-sha a136322f8723 → e651c936870e so the vendored console
carries the console-side halves of this work: objectui#2971 (read #3962's
single-wrapped responses; PeoplePicker render-phase cursor fix) and objectui#2972
(declared-response-envelope unwrap on the datasource page and api-action runner).
Verified in the browser at the new pin: a validation-failing action answers 400
with error.code VALIDATION_FAILED and details.fields[] anchoring issued_on, the
console shows a RED error toast and the record stays Draft; the succeeding call
answers 200 with data as the handler's return value (single wrap) and shows the
green success toast with the record flipped to Sent.
Claude-Session: https://claude.ai/code/session_011AvZj6cLX7APd7roh2eK4F
Co-authored-by: Claude <noreply@anthropic.com>1 parent d1c8298 commit 0c90ece
3 files changed
Lines changed: 71 additions & 0 deletions
File tree
- .changeset
- packages/runtime/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
164 | 185 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1053 | 1053 | | |
1054 | 1054 | | |
1055 | 1055 | | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1056 | 1080 | | |
1057 | 1081 | | |
1058 | 1082 | | |
| |||
0 commit comments