Skip to content

Restyle web UI to opencla.watch palette, update README and roadmap - #12

Merged
anilmurty merged 1 commit into
mainfrom
ui-styling-readme
Apr 7, 2026
Merged

anilmurty merged 1 commit into
mainfrom
ui-styling-readme

Conversation

@anilmurty

@anilmurty anilmurty commented Apr 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

UI Styling (opencla.watch palette)

  • Switch from cla.watch tokens (dark black + teal) to opencla.watch (deep navy #070d1a + electric blue #3d8eff)
  • Replace JetBrains Mono with IBM Plex Mono, add Bricolage Grotesque for headings
  • Embed opencla.watch SVG icon inline in sidebar brand

Bug Fixes

  • SDK DuckDB lock — bootstrap now detects running ocw serve and sends spans via HTTP (OcwHttpExporter) instead of opening DuckDB directly
  • LiteLLM model prefix — strips openai/ prefix from model names so pricing lookup finds gpt-4o-mini not openai/gpt-4o-mini
  • Sidebar logo — inline SVG icon with currentColor inheriting accent blue

README & Roadmap

  • Add Web UI section with feature list
  • Add ocw serve to quickstart commands
  • Mark 4 roadmap items complete, add 5 new items
  • Bump @openclawwatch/sdk to 0.1.3

Test plan

  • All 232 tests pass
  • ruff check ocw/ clean
  • Run ocw serve & then agent script — spans arrive via HTTP (no lock error)
  • ocw cost shows gpt-4o-mini not openai/gpt-4o-mini after LiteLLM agent run
  • Web UI shows deep navy bg, electric blue accent, SVG logo in sidebar

🤖 Generated with Claude Code

- Switch from cla.watch tokens (dark black + teal) to opencla.watch
  tokens (deep navy + electric blue)
- Replace JetBrains Mono with IBM Plex Mono, add Bricolage Grotesque
  for headings
- Update waterfall bar colors: agent=green, LLM=blue, tool=amber
- Add Web UI section to README with feature list
- Add ocw serve to quickstart commands
- Update roadmap: mark completed items, add new items
- Bump @openclawwatch/sdk to 0.1.3 (npm rejected duplicate 0.1.0)

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@anilmurty
anilmurty merged commit 8ffd8cc into main Apr 7, 2026
4 checks passed
anilmurty added a commit that referenced this pull request Jun 19, 2026
…#10,#13)

Smoke-test playbook (tests/manual-new-release-tests.md):

- #3 (and #8/#9/#11/#12/#14/#16 — same root cause): code blocks are now
  command-only; the inline "# comments" and "# [ ]" checklists that the markdown
  copy button was pulling into copied commands moved to prose / "- [ ]" lists
  around each block. Added a note explaining the convention.
- #10: corrected the Section 4 trim expectation — with [capture] prompts=false
  (default), trim checks the capture prereq first and prints the capture hint,
  NOT the tokenjam[bloat] install hint (only reachable once capture is on).
- #13: export file is "claude-code-<date>.jsonc", not ".json".

Doc-only; no code changes.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
anilmurty pushed a commit that referenced this pull request Jul 2, 2026
…e reads

#4's recurring-inclusion detection only covered file Reads (group by
`file_path`, frequency-count across sessions, suggest `@file`/CLAUDE.md).
Repeated prompts, repeated searches, and large repeated tool outputs also
re-paste across turns/sessions and burn the same quota, but went undetected.

Generalize the detector into one `(inclusion_type, tool_name, signature)`
aggregation carrying a distinct-session set + occurrence count, then flag four
kinds, each with a type-appropriate structural fix:
  * file reads (Read/View/Cat `file_path`) -> `@file` / CLAUDE.md;
  * searches (Grep/Glob/Search query/pattern) -> pin / capture the result;
  * prompts (identical `gen_ai.prompt.content` re-sent) -> save as a
    slash-command / CLAUDE.md note;
  * large tool outputs (identical `gen_ai.tool.output` >= 2K chars re-pasted)
    -> reference the artifact instead of re-running.

Each kind is independently capture-gated by its `[capture]` toggle
(tool_inputs / prompts / tool_outputs), so default-off behavior is unchanged
and a flag-off kind contributes nothing. File reads / searches gate on distinct
sessions (a single session re-reading a file isn't structural); prompts /
outputs re-paste across turns within a session too, so they gate on raw
occurrence count. Framing stays quota-native (#4). Tool outputs are only
captured on the live ingest path, not the on-disk transcript — the nudge note
says so. `RecurringInclusion` now carries `inclusion_type`; the CLI renders a
per-kind tag and the JSON payload round-trips it.

Extends the synthetic fixture to exercise recurring Grep, prompts, and large
outputs, asserting each is detected with frequency + the structural fix, plus a
size-gate test and a per-flag gating test.

Co-Authored-By: Claude <[email protected]>
anilmurty added a commit that referenced this pull request Aug 13, 2026
The label guard never raises — every outcome is a silent no-op — so the log
line is the only diagnosis an operator gets. That makes two different
outcomes sharing one line a real defect, not a cosmetic one, and #608 asked
specifically for those lines to be distinguishable.

Measured against the handler as it stood before the follow-up commit: a
realistic 403 logged "no-op: issue #12 is already closed", byte-identical to
a genuinely closed issue. GitHub returns a JSON body on an error, so the
payload IS a dict, the `isinstance` check passed, no `state` key was found on
the error body, and it fell through to the closed-issue branch. 401, 429 and
500 all did the same. "Our token lost its permissions and this guard has
stopped working" was indistinguishable from "nothing to do here".

The follow-up commit fixed that for error bodies that parse as JSON. This
closes the rest of the same hole. Checking the payload's SHAPE before the
STATUS is the underlying mistake, and it still misfired in two cases: an
error whose body is not valid JSON leaves `_api_request` returning
`(status, None)` — GitHub serves HTML from its secondary-rate-limit and abuse
walls, as can any proxy in front of the API — which was reported as "not
found", pointing an operator at a deleted issue when the request was actually
rejected; and a 200 carrying a non-object payload was folded into that same
"not found" line despite being neither an error nor a missing issue. Status
is now inspected first, and the unreadable-payload case gets its own wording.

The ordering bug was present in both handlers and was noticed in only one, so
the checks move into one `_unusable_issue_reason` helper that both call
rather than staying duplicated where they can drift apart again. Every
existing log string is preserved verbatim; only the previously-conflated
cases change. The no-raise contract is untouched — the helper formats
strings and nothing more.

Tests run each precondition case against BOTH handlers, and are pinned as
able to fail for the reason they were written: against the pre-fix handler 12
fail, against the follow-up handler the 4 covering the residual gap fail. The
closed-issue line is asserted in both directions, so tightening the error
branches cannot quietly swallow the ordinary no-op they had been imitating.

61 passed, up from 45.

Co-authored-by: syf2211 <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant