Repository navigation
Commit 33b0d4f
committed
console: show CAL warnings on the Query page
Every other surface honours the contract that silence means the query did
what you asked (docs/cal-reference.md §5): the bindings and the MCP tool
return `warnings`, the CLI prints them to stderr. The console received them
from POST /api/cal and dropped them on the floor -- all seventeen, W001
through W017, not just the new one.
That is the worst surface to lose them on. It is where a person reads an
answer, and a warning is precisely the news that the answer is a window
rather than the whole match. The result this commit's own CAL-W017 describes
-- 70 of 200 grains -- rendered as a plain "70 memories" with nothing to say
the other 130 existed.
Shown above the result, in the console's existing warning style. The
CAL-Wnnn code is stripped in plain mode and kept in Developer mode: the code
is developer chrome, but "130 of 200 grains dropped" is news for whoever is
reading. A query that warns about nothing still shows nothing, so silence
keeps its meaning here too.
No README screenshot is affected -- the five shots are graph, workflow, runs,
suggestions and analytics; the Query page is not among them.
Claude-Session: https://claude.ai/code/session_01JEcv3k8mMwZ5YAa26jdLc21 parent 85df2ac commit 33b0d4f
3 files changed
Lines changed: 45 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
42 | 52 | | |
43 | 53 | | |
44 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5965 | 5965 | | |
5966 | 5966 | | |
5967 | 5967 | | |
| 5968 | + | |
| 5969 | + | |
| 5970 | + | |
| 5971 | + | |
| 5972 | + | |
| 5973 | + | |
| 5974 | + | |
| 5975 | + | |
| 5976 | + | |
| 5977 | + | |
| 5978 | + | |
| 5979 | + | |
| 5980 | + | |
| 5981 | + | |
| 5982 | + | |
| 5983 | + | |
| 5984 | + | |
| 5985 | + | |
| 5986 | + | |
| 5987 | + | |
| 5988 | + | |
| 5989 | + | |
| 5990 | + | |
| 5991 | + | |
| 5992 | + | |
| 5993 | + | |
| 5994 | + | |
| 5995 | + | |
| 5996 | + | |
| 5997 | + | |
5968 | 5998 | | |
5969 | 5999 | | |
5970 | 6000 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
852 | | - | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
853 | 857 | | |
854 | 858 | | |
855 | 859 | | |
| |||
0 commit comments