Commit Graph

56 Commits

Author SHA1 Message Date
ejclaw
e6f417c343 add codex goals settings toggle 2026-05-02 00:06:26 +09:00
ejclaw
731984207c add dashboard MoA settings controls 2026-04-30 01:31:05 +09:00
ejclaw
4aca45ca23 fix dashboard collapsed output previews 2026-04-29 19:49:33 +09:00
ejclaw
4dcd4037f1 chore: clear low-risk lint warnings 2026-04-29 13:31:11 +09:00
ejclaw
b83de973f8 Align dashboard room progress with Discord messages 2026-04-28 22:33:12 +09:00
ejclaw
a8ae4aece4 Extract dashboard task action buttons 2026-04-28 21:09:10 +09:00
ejclaw
bd3dc1634c Tighten dashboard room thread spacing 2026-04-28 20:46:05 +09:00
ejclaw
a75c369ade Localize dashboard room protocol labels 2026-04-28 20:28:48 +09:00
ejclaw
38ba5b87fa Show full dashboard room content 2026-04-28 19:53:00 +09:00
Eyejoker
6197e90c8c Fix structured attachment rendering (#69)
* review: harden readonly git checks and lint verification

* test: satisfy readonly reviewer sandbox typing

* test: fix readonly reviewer sandbox assertions

* test: remove impossible readonly sandbox guards

* test: relax readonly sandbox assertions

* test: cast readonly sandbox expectation shape

* test: cast readonly sandbox expectation through unknown

* Phase 0 — STEP_DONE/TASK_DONE split + owner-follow-up integration smoke

* Add STEP_DONE guards, verdict storage, and stale delivery suppression

* style: format paired stepdone telemetry files

* Route STEP_DONE through reviewer

* Add structured Discord attachments

* style: format structured attachment test

* Fix room thread bot output parity

* Remove duplicate work item attachment migration from owner branch

* Remove legacy dashboard rooms renderer

* Extract dashboard parsed body renderer

* Extract dashboard redaction helpers

* Extract dashboard RoomCardV2 component

* Include RoomCardV2 test in vitest suite

* Extract dashboard RoomBoardV2 component

* Extract dashboard EmptyState component

* Extract dashboard InboxPanel component

* Split dashboard InboxPanel card renderer

* Extract dashboard TaskPanel component

* Extract dashboard UsagePanel component

* Fix dashboard room thread chunk rendering

* Extract dashboard ServicePanel component

* Render dashboard live progress markdown

* Extract dashboard SettingsPanel component

* Fix structured attachment rendering
2026-04-28 17:36:11 +09:00
Eyejoker
96d99f63e0 Extract dashboard SettingsPanel component (#68)
* review: harden readonly git checks and lint verification

* test: satisfy readonly reviewer sandbox typing

* test: fix readonly reviewer sandbox assertions

* test: remove impossible readonly sandbox guards

* test: relax readonly sandbox assertions

* test: cast readonly sandbox expectation shape

* test: cast readonly sandbox expectation through unknown

* Phase 0 — STEP_DONE/TASK_DONE split + owner-follow-up integration smoke

* Add STEP_DONE guards, verdict storage, and stale delivery suppression

* style: format paired stepdone telemetry files

* Route STEP_DONE through reviewer

* Add structured Discord attachments

* style: format structured attachment test

* Fix room thread bot output parity

* Remove duplicate work item attachment migration from owner branch

* Remove legacy dashboard rooms renderer

* Extract dashboard parsed body renderer

* Extract dashboard redaction helpers

* Extract dashboard RoomCardV2 component

* Include RoomCardV2 test in vitest suite

* Extract dashboard RoomBoardV2 component

* Extract dashboard EmptyState component

* Extract dashboard InboxPanel component

* Split dashboard InboxPanel card renderer

* Extract dashboard TaskPanel component

* Extract dashboard UsagePanel component

* Fix dashboard room thread chunk rendering

* Extract dashboard ServicePanel component

* Render dashboard live progress markdown

* Extract dashboard SettingsPanel component
2026-04-28 16:56:37 +09:00
Eyejoker
e68ce6c616 Render dashboard live progress markdown (#67)
* review: harden readonly git checks and lint verification

* test: satisfy readonly reviewer sandbox typing

* test: fix readonly reviewer sandbox assertions

* test: remove impossible readonly sandbox guards

* test: relax readonly sandbox assertions

* test: cast readonly sandbox expectation shape

* test: cast readonly sandbox expectation through unknown

* Phase 0 — STEP_DONE/TASK_DONE split + owner-follow-up integration smoke

* Add STEP_DONE guards, verdict storage, and stale delivery suppression

* style: format paired stepdone telemetry files

* Route STEP_DONE through reviewer

* Add structured Discord attachments

* style: format structured attachment test

* Fix room thread bot output parity

* Remove duplicate work item attachment migration from owner branch

* Remove legacy dashboard rooms renderer

* Extract dashboard parsed body renderer

* Extract dashboard redaction helpers

* Extract dashboard RoomCardV2 component

* Include RoomCardV2 test in vitest suite

* Extract dashboard RoomBoardV2 component

* Extract dashboard EmptyState component

* Extract dashboard InboxPanel component

* Split dashboard InboxPanel card renderer

* Extract dashboard TaskPanel component

* Extract dashboard UsagePanel component

* Fix dashboard room thread chunk rendering

* Extract dashboard ServicePanel component

* Render dashboard live progress markdown
2026-04-28 16:37:43 +09:00
Eyejoker
74cb43b1d8 Extract dashboard ServicePanel component (#66)
* review: harden readonly git checks and lint verification

* test: satisfy readonly reviewer sandbox typing

* test: fix readonly reviewer sandbox assertions

* test: remove impossible readonly sandbox guards

* test: relax readonly sandbox assertions

* test: cast readonly sandbox expectation shape

* test: cast readonly sandbox expectation through unknown

* Phase 0 — STEP_DONE/TASK_DONE split + owner-follow-up integration smoke

* Add STEP_DONE guards, verdict storage, and stale delivery suppression

* style: format paired stepdone telemetry files

* Route STEP_DONE through reviewer

* Add structured Discord attachments

* style: format structured attachment test

* Fix room thread bot output parity

* Remove duplicate work item attachment migration from owner branch

* Remove legacy dashboard rooms renderer

* Extract dashboard parsed body renderer

* Extract dashboard redaction helpers

* Extract dashboard RoomCardV2 component

* Include RoomCardV2 test in vitest suite

* Extract dashboard RoomBoardV2 component

* Extract dashboard EmptyState component

* Extract dashboard InboxPanel component

* Split dashboard InboxPanel card renderer

* Extract dashboard TaskPanel component

* Extract dashboard UsagePanel component

* Fix dashboard room thread chunk rendering

* Extract dashboard ServicePanel component
2026-04-28 16:18:54 +09:00
Eyejoker
5902960144 Fix dashboard room thread chunk rendering (#65)
* review: harden readonly git checks and lint verification

* test: satisfy readonly reviewer sandbox typing

* test: fix readonly reviewer sandbox assertions

* test: remove impossible readonly sandbox guards

* test: relax readonly sandbox assertions

* test: cast readonly sandbox expectation shape

* test: cast readonly sandbox expectation through unknown

* Phase 0 — STEP_DONE/TASK_DONE split + owner-follow-up integration smoke

* Add STEP_DONE guards, verdict storage, and stale delivery suppression

* style: format paired stepdone telemetry files

* Route STEP_DONE through reviewer

* Add structured Discord attachments

* style: format structured attachment test

* Fix room thread bot output parity

* Remove duplicate work item attachment migration from owner branch

* Remove legacy dashboard rooms renderer

* Extract dashboard parsed body renderer

* Extract dashboard redaction helpers

* Extract dashboard RoomCardV2 component

* Include RoomCardV2 test in vitest suite

* Extract dashboard RoomBoardV2 component

* Extract dashboard EmptyState component

* Extract dashboard InboxPanel component

* Split dashboard InboxPanel card renderer

* Extract dashboard TaskPanel component

* Extract dashboard UsagePanel component

* Fix dashboard room thread chunk rendering
2026-04-28 16:03:52 +09:00
Eyejoker
72f71d5abf Extract dashboard UsagePanel component (#64)
* review: harden readonly git checks and lint verification

* test: satisfy readonly reviewer sandbox typing

* test: fix readonly reviewer sandbox assertions

* test: remove impossible readonly sandbox guards

* test: relax readonly sandbox assertions

* test: cast readonly sandbox expectation shape

* test: cast readonly sandbox expectation through unknown

* Phase 0 — STEP_DONE/TASK_DONE split + owner-follow-up integration smoke

* Add STEP_DONE guards, verdict storage, and stale delivery suppression

* style: format paired stepdone telemetry files

* Route STEP_DONE through reviewer

* Add structured Discord attachments

* style: format structured attachment test

* Fix room thread bot output parity

* Remove duplicate work item attachment migration from owner branch

* Remove legacy dashboard rooms renderer

* Extract dashboard parsed body renderer

* Extract dashboard redaction helpers

* Extract dashboard RoomCardV2 component

* Include RoomCardV2 test in vitest suite

* Extract dashboard RoomBoardV2 component

* Extract dashboard EmptyState component

* Extract dashboard InboxPanel component

* Split dashboard InboxPanel card renderer

* Extract dashboard TaskPanel component

* Extract dashboard UsagePanel component
2026-04-28 15:46:47 +09:00
Eyejoker
c19665a134 Extract dashboard TaskPanel component (#63)
* review: harden readonly git checks and lint verification

* test: satisfy readonly reviewer sandbox typing

* test: fix readonly reviewer sandbox assertions

* test: remove impossible readonly sandbox guards

* test: relax readonly sandbox assertions

* test: cast readonly sandbox expectation shape

* test: cast readonly sandbox expectation through unknown

* Phase 0 — STEP_DONE/TASK_DONE split + owner-follow-up integration smoke

* Add STEP_DONE guards, verdict storage, and stale delivery suppression

* style: format paired stepdone telemetry files

* Route STEP_DONE through reviewer

* Add structured Discord attachments

* style: format structured attachment test

* Fix room thread bot output parity

* Remove duplicate work item attachment migration from owner branch

* Remove legacy dashboard rooms renderer

* Extract dashboard parsed body renderer

* Extract dashboard redaction helpers

* Extract dashboard RoomCardV2 component

* Include RoomCardV2 test in vitest suite

* Extract dashboard RoomBoardV2 component

* Extract dashboard EmptyState component

* Extract dashboard InboxPanel component

* Split dashboard InboxPanel card renderer

* Extract dashboard TaskPanel component
2026-04-28 15:35:02 +09:00
Eyejoker
6d13c3aa49 Extract dashboard InboxPanel component (#62)
* review: harden readonly git checks and lint verification

* test: satisfy readonly reviewer sandbox typing

* test: fix readonly reviewer sandbox assertions

* test: remove impossible readonly sandbox guards

* test: relax readonly sandbox assertions

* test: cast readonly sandbox expectation shape

* test: cast readonly sandbox expectation through unknown

* Phase 0 — STEP_DONE/TASK_DONE split + owner-follow-up integration smoke

* Add STEP_DONE guards, verdict storage, and stale delivery suppression

* style: format paired stepdone telemetry files

* Route STEP_DONE through reviewer

* Add structured Discord attachments

* style: format structured attachment test

* Fix room thread bot output parity

* Remove duplicate work item attachment migration from owner branch

* Remove legacy dashboard rooms renderer

* Extract dashboard parsed body renderer

* Extract dashboard redaction helpers

* Extract dashboard RoomCardV2 component

* Include RoomCardV2 test in vitest suite

* Extract dashboard RoomBoardV2 component

* Extract dashboard EmptyState component

* Extract dashboard InboxPanel component

* Split dashboard InboxPanel card renderer
2026-04-28 15:04:37 +09:00
Eyejoker
13f05273d7 Extract dashboard EmptyState component (#61)
* review: harden readonly git checks and lint verification

* test: satisfy readonly reviewer sandbox typing

* test: fix readonly reviewer sandbox assertions

* test: remove impossible readonly sandbox guards

* test: relax readonly sandbox assertions

* test: cast readonly sandbox expectation shape

* test: cast readonly sandbox expectation through unknown

* Phase 0 — STEP_DONE/TASK_DONE split + owner-follow-up integration smoke

* Add STEP_DONE guards, verdict storage, and stale delivery suppression

* style: format paired stepdone telemetry files

* Route STEP_DONE through reviewer

* Add structured Discord attachments

* style: format structured attachment test

* Fix room thread bot output parity

* Remove duplicate work item attachment migration from owner branch

* Remove legacy dashboard rooms renderer

* Extract dashboard parsed body renderer

* Extract dashboard redaction helpers

* Extract dashboard RoomCardV2 component

* Include RoomCardV2 test in vitest suite

* Extract dashboard RoomBoardV2 component

* Extract dashboard EmptyState component
2026-04-28 14:35:43 +09:00
Eyejoker
d99c0bc6be Extract dashboard RoomBoardV2 component (#60)
* review: harden readonly git checks and lint verification

* test: satisfy readonly reviewer sandbox typing

* test: fix readonly reviewer sandbox assertions

* test: remove impossible readonly sandbox guards

* test: relax readonly sandbox assertions

* test: cast readonly sandbox expectation shape

* test: cast readonly sandbox expectation through unknown

* Phase 0 — STEP_DONE/TASK_DONE split + owner-follow-up integration smoke

* Add STEP_DONE guards, verdict storage, and stale delivery suppression

* style: format paired stepdone telemetry files

* Route STEP_DONE through reviewer

* Add structured Discord attachments

* style: format structured attachment test

* Fix room thread bot output parity

* Remove duplicate work item attachment migration from owner branch

* Remove legacy dashboard rooms renderer

* Extract dashboard parsed body renderer

* Extract dashboard redaction helpers

* Extract dashboard RoomCardV2 component

* Include RoomCardV2 test in vitest suite

* Extract dashboard RoomBoardV2 component
2026-04-28 14:23:43 +09:00
Eyejoker
05865197c7 Extract dashboard RoomCardV2 component (#59)
* review: harden readonly git checks and lint verification

* test: satisfy readonly reviewer sandbox typing

* test: fix readonly reviewer sandbox assertions

* test: remove impossible readonly sandbox guards

* test: relax readonly sandbox assertions

* test: cast readonly sandbox expectation shape

* test: cast readonly sandbox expectation through unknown

* Phase 0 — STEP_DONE/TASK_DONE split + owner-follow-up integration smoke

* Add STEP_DONE guards, verdict storage, and stale delivery suppression

* style: format paired stepdone telemetry files

* Route STEP_DONE through reviewer

* Add structured Discord attachments

* style: format structured attachment test

* Fix room thread bot output parity

* Remove duplicate work item attachment migration from owner branch

* Remove legacy dashboard rooms renderer

* Extract dashboard parsed body renderer

* Extract dashboard redaction helpers

* Extract dashboard RoomCardV2 component

* Include RoomCardV2 test in vitest suite
2026-04-28 14:04:34 +09:00
Eyejoker
f162f42c6b Extract dashboard redaction helpers
Centralize dashboard secret redaction helpers and add focused regression tests.
2026-04-28 13:25:46 +09:00
Eyejoker
23c5be6ecd Extract dashboard parsed body renderer
Extract the dashboard markdown renderer into ParsedBody.tsx and remove stale inline parser helpers from App.tsx.
2026-04-28 13:15:59 +09:00
Eyejoker
880e1bfe24 Remove legacy dashboard rooms renderer
Remove unused Rooms v1 renderer and stale CSS after Rooms V2 became the only active dashboard path.
2026-04-28 13:00:58 +09:00
Eyejoker
727aa3446e Fix room thread bot output parity
Fix dashboard room thread rendering so regular Discord bot outputs from messages[] are shown when paired outputs are missing, while keeping watcher messages separated and deduplicating paired outputs.
2026-04-28 11:18:16 +09:00
Eyejoker
2d6711f4c7 Unify dashboard mobile navigation (#54) 2026-04-28 10:53:13 +09:00
Eyejoker
20e1a1e5e1 Fix mobile rooms and live progress parity
Improve mobile room UX, separate live progress from recent chat, and lock the parity behavior with service tests.
2026-04-28 01:27:55 +09:00
Eyejoker
dafb84fa4d Settings: clarify Codex 만료=결제, drop Claude expiry badge (#49)
- Codex expiry badge now says "결제 만료/까지" so it's unambiguous that
  this is the ChatGPT Pro/Team subscription end-date, not an OAuth
  access-token TTL.
- Claude rows no longer show an expiry badge: Claude credentials only
  expose an OAuth access_token TTL (auto-refreshed every few minutes
  by the existing claude token refresh loop), which is meaningless to
  the user. Replace it with a static "토큰 자동갱신" tag so the column
  alignment stays consistent.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-27 22:26:17 +09:00
Eyejoker
c2a6889567 Codex accounts: 6h auto-refresh, manual refresh, manual switch (#48)
Auto refresh
- New refreshCodexAccount(index) calls https://auth.openai.com/oauth/token
  with grant_type=refresh_token and persists rotated tokens back to
  ~/.codex-accounts/{N}/auth.json. JWT's subscription_active_until
  reflects the latest plan state OpenAI hands back.
- startCodexAccountRefreshLoop() runs every 6h (first run delayed 60s
  after boot to keep startup snappy). Hooked into main()/shutdown()
  alongside the existing claude token refresh loop.

Manual controls (Settings → 계정 → Codex)
- "갱신" button per row: forces an immediate refresh for that account.
- "전체 갱신" button: refreshes all codex accounts in sequence.
- "전환" button: writes data/codex-rotation-state.json so the next codex
  spawn picks the chosen account. Active account marked with a green-
  bordered card and "사용중" badge.

Endpoints
- POST /api/settings/accounts/codex/{i}/refresh
- POST /api/settings/accounts/codex/refresh-all
- PUT  /api/settings/accounts/codex/current  { index }
- GET  /api/settings/accounts now also returns codexCurrentIndex.

Why
JWTs cache subscription state at issue-time. When a Pro plan lapses or
a user upgrades/downgrades, the dashboard kept showing stale data until
the user logged in again. Periodic refresh + explicit "갱신" button
keeps the displayed state honest, and the manual switch unblocks the
user when rotation lands on a known-bad account.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-27 22:23:06 +09:00
Eyejoker
2f7e09e194 Settings: relax 480px panel cap and align account row right side (#47)
- Bump .settings-panel max-width 480px → 760px so settings page actually
  uses available desktop width (the 480px cap was a leftover from an
  initial mobile-first sketch).
- Account row main grid columns become fixed: 28px tag · 1fr email ·
  60px plan · 180px expiry. Plan and expiry badges now line up
  vertically across rows regardless of email length.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-27 22:11:59 +09:00
Eyejoker
7047caa608 Settings: add Fast Mode toggle for codex/claude + tidy account row alignment (#46)
Fast mode controls
- Codex: writes [features].fast_mode = true|false in ~/.codex/config.toml.
  This matches the in-TUI /fast toggle ("toggle Fast mode to enable
  fastest inference with increased plan usage").
- Claude: writes fastMode: bool to ~/.claude/settings.json. Mirrors the
  /fast slash command preference (effective on opus-4-6).

UX polish
- Account rows switch from flex-wrap to a fixed grid (tag · email · plan ·
  expiry · action) so emails of varying lengths don't cause ragged
  baselines between rows.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-27 22:06:56 +09:00
Eyejoker
5883e57d73 Settings: show codex account email + subscription expiry (#45)
- Extract email and chatgpt_subscription_last_checked from codex JWT in
  addition to plan_type and subscription_active_until.
- Settings → 계정 row now displays: email · plan badge · expiry badge
  with active/soon/expired color coding (green/amber/red).
- Fix codex/.codex-accounts directory scan picking up sibling dirs like
  "1.bak-..." and double-counting an index (require dirname to be
  fully numeric).

Motivation: rotation was landing on accounts whose Pro/Team subscription
had silently expired, causing OpenAI to reject upper-tier models with
a misleading "model not supported" error. Surface expiry in the UI so
the user can see at a glance which accounts need renewal.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-27 21:58:01 +09:00
Eyejoker
eeba0334f9 refactor dashboard room activity fetching
Refactor selected-room dashboard activity fetching, split Rooms i18n, and tighten mobile usage layout.
2026-04-27 20:36:18 +09:00
Eyejoker
ea323cc787 Overhaul dashboard UX (two-pane rooms, live turn persistence, react-markdown) (#42)
* Overhaul dashboard UX with two-pane rooms and live turn persistence

- Two-pane room board (Discord-style list + detail) with sender role
  colors, inbox attention badges, and per-role left-border sectioning
- Settings page: nickname + language extracted to /#/settings; sidebar
  freed up for mini stats (rooms, queue, inbox) and nav badges
- react-markdown + remark-gfm for message body (tables, code, links,
  proper line breaks); unified timeline merges outputs and human messages
- Live turn elapsed counter ticks every second; paused state preserved
  across service restarts via new progress_text column on paired_turns
  (migration 015) so in-flight context survives reboots
- Batched /api/rooms-timeline endpoint with server-side stale-while-
  revalidate cache + gzip; cold ~3s -> warm ~10ms
- Optimistic UI for outgoing messages with rollback on failure;
  nickname propagated to sender_name on send
- Density sweep: tighter paddings, radii, font sizes; tokens align
  across panel/card/sidebar/timeline

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Strip redundant LIVE/intent/state labels from turn header

The left dot already signals LIVE and the role chip already shows the
turn role; the standalone LIVE label, intentKind em, and state pill
were repeating that information. Keep only role chip, time, elapsed,
and a "중단됨" label when paused.

Also picks up Prettier-formatted long lines in i18n and backend files
left over from the previous commit.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Convert sidebar to lucide-react icon rail and fix optimistic UI

- Replace 168px text-label sidebar with 56px flush-left icon rail
  (lucide-react icons: Gauge/Inbox/Activity/MessageSquare/Clock/Settings)
  Discord/Slack pattern: rail against left edge, no centered shell margin
- Optimistic UI now survives polling: pending messages tracked in a
  separate state and merged into the timeline render; an effect prunes
  pending entries once the server snapshot confirms them by content match
- LIVE elapsed counter shows seconds at all granularities (formatLiveElapsed
  uses m+s/h+m+s instead of dropping seconds after 60s)
- Refresh button shows spin animation while busy

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Make Rooms the default landing view

Rooms is the primary surface (chat-style live agent flow), so reorder
nav (Rooms first) and switch DEFAULT_VIEW from inbox to rooms. The
topbar fallback label also changes from 'usage' to 'rooms'.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Submit room message on Enter, allow Shift+Enter for newline

IME composition (event.nativeEvent.isComposing) is excluded so that
mid-Hangul Enter does not trigger send.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Viewport-lock rooms view to remove double scroll

The rooms view now fills the viewport (height: 100vh - topbar) with
list and detail each scrolling in their own column. The page itself
no longer scrolls when the detail thread grows long, so the wheel
scrolls whichever column the cursor is over.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Flatten rooms view, single-line compose with icon send button

Drop nested card chrome on rooms view: outer panel now has no padding,
border, or background so the rail / list / detail sit flush against
the page. Internal panes (rooms-list, rooms-detail) lose their own
borders and rely on a single divider line for separation.

Compose textarea is single-row by default (rows=1) and grows up to
~5 lines; the send button is icon-only (Send from lucide-react),
fixed 36x36, pinned to the bottom of the detail pane. The redundant
'메시지' h4 and the 세부 fold are removed — the room title in the
header already establishes context.

Detail pane is now a flex column where only the timeline scrolls;
the head sticks at top and the compose pins at bottom (messenger
pattern), so the input is always reachable.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Fix rooms layout: viewport lock, restore panel tone, ensure thread scrolls

- Lock body to viewport height (overflow:hidden) only when rooms view is
  active, via body:has(.view-stack.view-rooms). Section nav becomes
  static so the layout fits exactly in the viewport instead of being
  clipped under the sticky header.
- Restore subtle panel background and border on .rooms-list and
  .rooms-detail so chat content has tonal contrast against the page bg
  (pure black was unreadable). Outer panel chrome stays flat.
- Make the thread section the only flex:1 child of the pinned card so
  it actually scrolls when content overflows; everything else (head,
  meta, current turn, watcher fold, compose) stays flex:none.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Make rooms-detail itself scroll with sticky head and compose

Drop the brittle flex-column-with-1fr-child setup; just let .rooms-detail
be overflow-y:auto and pin .room-card-head to top and
.room-compose-section to bottom via position:sticky. The head and
compose stay visible while the thread between them scrolls naturally.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Match compose-section background to panel

The sticky compose bar was using var(--bg) (near-black) which jarred
against the surrounding panel tone. Use var(--panel) so it sits
continuously with the room detail.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Fix compose full-width and hide internal IPC payloads

- The compose section's full-width grid was being clobbered by the
  later .room-section { display: grid } rule (same specificity, source
  order won). Bump specificity to .room-section.room-compose-section
  with display: block so the inner form/textarea fills the panel.
- Filter out internal protocol payloads from the timeline:
  isInternalProtocolPayload() detects {"author":..."recipient":...}
  shaped agent IPC messages and excludes them from humanMessages and
  outputEntries. These are routing metadata, not human-readable chat.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Tighten rooms width: explicit 100% on detail/card, responsive list

- Make rooms-list responsive (clamp(180px, 16vw, 240px)) so on smaller
  screens the chat area gets more room
- Add explicit width: 100% to rooms-twopane, rooms-detail, and the
  pinned room-card-v2 so nothing collapses to content-size

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Remove timeline left indent and broaden IPC payload filter

- Drop the 3px colored left border + 12px left padding on each
  timeline item; messages were starting 29px from the panel edge
  (3 border + 12 item padding + 14 thread padding). Role colors are
  already conveyed by the role chip, so the border is redundant.
- Tighten thread-section padding from 14px to 12px to match compose.
- Broaden isInternalProtocolPayload to also catch <sub-agent-prompt>,
  <tool-call>, <internal> wrapped payloads — these were leaking into
  the visible thread when the agent emitted them as message content.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Restore role color borders and tighten left padding

- Bring back the role-colored left border on timeline items (2px now,
  was 3px) so owner/reviewer/arbiter/human are visually distinct
- Tighten left-side spacing across the chat panel: thread section
  padding-left 12 -> 4, item padding-left 12 -> 8, card head
  padding-left 14 -> 8, compose-section padding-left 12 -> 4. Content
  now starts ~10px from the detail panel's inner edge instead of ~30px

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Unclamp output text in unified timeline + add measure debug toggle

- The legacy .room-output-item p / .room-message-item p / .room-latest-output p
  rules used -webkit-line-clamp:2/4 to truncate previews. The unified
  timeline doesn't use those classes so it shouldn't be clamped, but
  add a defensive override on .room-timeline-body .parsed-body that
  unclamps and clears max-height in case any sibling rule leaks in.
- Add ?debug=1 (outline panels) and ?measure=1 (overlay container x/w
  in viewport coords) toggles via App.tsx so we can diagnose layout
  issues without npm-installing devtools.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Tighten rooms layout left/right margins

Drop view-panel and section-nav left margin from 12px to 8px. Removes
the visible empty band between icon-rail and rooms-list (was 12px,
now 8px).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Remove internal left padding in rooms-detail panel

The detail panel had 4-8px of left padding inside the thread and
compose sections, leaving an empty band on the left. Drop padding-left
to 0 on .room-thread-section and .room-compose-section. Timeline items
keep their own 8px padding-left (for the role border + text gap), and
the textarea inherits the same flush-left starting position as
messages — they align vertically now.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Fix 26px left empty band: zero out .room-expanded padding in pinned mode

Root cause located via pixel scan + DOM dump: the legacy
.room-expanded wrapper (used by the click-to-expand layout) has
padding: 14px 0 4px 26px to align expanded content with the head's
pulse-dot column. In the pinned twopane layout it was leaving a
26px empty band between the panel border and the chat content.

Override .room-expanded inside .room-card-v2.is-pinned to zero
padding/margin/border-top/gap, so thread-section and compose-section
align flush at the panel's inner left edge.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Add Playwright + dash-inspect helper script

Playwright (chromium) is installed so future layout debugging can use
real DOM/computed-style queries instead of pixel scans on screenshots.

Helper commands:
  bun scripts/dash-inspect.ts shot [route]
  bun scripts/dash-inspect.ts measure '<selector>'
  bun scripts/dash-inspect.ts eval '<expr>'
  bun scripts/dash-inspect.ts dom '<selector>'
  bun scripts/dash-inspect.ts click '<selector>'

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Auto-scroll chat to bottom on send and on new messages

- When the user sends a message, scroll the rooms-detail panel to the
  very bottom over 4 frames (covers the post-render layout settle).
- Add a near-bottom tracker: a ref flips false when the user scrolls
  more than 80px from the bottom, true otherwise. The auto-follow
  effect (triggered when messages/outputs/pending counts change) only
  scrolls if the user was already near the bottom — so reading scrollback
  doesn't get yanked.
- Initial room selection and any new content added while at-bottom
  always shows the latest message.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Add Settings page: model role config + multi-account management

Backend:
- src/settings-store.ts: filesystem reader for Claude (~/.claude,
  ~/.claude-accounts/N) and Codex (~/.codex, ~/.codex-accounts/N)
  account directories. Returns safe metadata only (expiresAt, scopes,
  subscriptionType, planType, accountId from JWT) — never raw tokens.
  Atomic .env writer for OWNER/REVIEWER/ARBITER MODEL/EFFORT pairs.
  Account directory deletion (refuses index 0). Claude account add via
  pasted OAuth JWT (decodes exp/sub from payload, writes new
  ~/.claude-accounts/N/.credentials.json).
- src/web-dashboard-server.ts: new endpoints
  GET    /api/settings/accounts
  GET    /api/settings/models
  PUT    /api/settings/models             (PATCH alias)
  POST   /api/settings/accounts/claude    (body: { token })
  DELETE /api/settings/accounts/{provider}/{index}

Frontend:
- apps/dashboard/src/api.ts: typed clients for the new endpoints.
- apps/dashboard/src/App.tsx: SettingsPanel split into 일반 / 모델 / 계정.
  Model section: editable owner/reviewer/arbiter model+effort fields
  with dirty tracking and a save button. Account section: per-provider
  list with delete buttons (default index 0 protected) and a token-paste
  field for adding a Claude account. Both sections expose a "스택 재시작"
  button that calls the existing /api/services/stack/actions endpoint
  with a confirmation prompt — changes only take effect after restart.

UX scope: phase B (model edit + account delete) + phase D (account add
via paste) per the recommendation; full OAuth flow not included.
Restart is gated behind a confirm() since it kills running agents.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Format: Prettier follow-up on settings PR

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Show cron / external-trigger messages inline (separate from CI watcher)

trusted_external_bot messages (Sentry Cron, GitHub webhook triggers,
etc.) were lumped into the CI-watcher fold and hidden by default.
Split them: WATCHER_RE now only matches actual CI status messages
(Build/Deploy/Lint/Release/[CI]/[Watcher]/GitHub Actions on bot kind),
so the watcher fold stays focused on CI noise.

trusted_external_bot messages now get rendered inline in the unified
timeline as cronMessages (sourceKind preserved). senderRoleClass
returns 'role-cron' for senders matching cron/sentry/webhook so the
chip and left border show in muted gray to visually distinguish from
agent and human messages.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Live progress fallback: scan TASK_STATUS messages for current turn only

When paired_turns.progress_text is empty (codex runner doesn't always
populate it in time), fall back to scanning the room's messages table
for ones starting with the TASK_STATUS_MESSAGE_PREFIX (the invisible
3-char prefix used on Discord live-edit messages). Strip the prefix
and the trailing elapsed indicator (e.g. "\n\n12초"), then render in
the LIVE timeline entry.

Filters:
- timestamp must be >= turn.createdAt (don't show pre-turn history)
- sender role must match the current turn's role (don't show a stale
  reviewer status when owner is now speaking)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Server fallback: derive live progressText from messages when column empty

Keep paired_turns.progress_text as the primary source (populated by
recordTurnProgress in MessageTurnController). When the column is empty
on an active turn — happens for codex turns where the controller path
isn't fully wired, or any path where ingestion lags — scan the messages
table for the most recent TASK_STATUS_MESSAGE_PREFIX-prefixed message
that belongs to the current turn (sender role match + timestamp >=
turn.createdAt) and use that as progressText.

This makes the dashboard converge with Discord without requiring the
column to be reliably written: if Discord shows a live edit, the
ingest pipeline writes it to messages, and we surface it.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Poll room timelines every 1.5s on rooms view (was every 15s)

The rooms-detail thread was reusing the 15s overview refresh tick,
which made the chat lag noticeably behind Discord. Add a dedicated
setInterval(1500ms) fetch on the rooms view (cleared when leaving),
with an in-flight guard so overlapping ticks don't pile up. Backend
already has a 2s stale-while-revalidate cache so this stays cheap.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Real-time rooms updates via Server-Sent Events

Backend: GET /api/stream emits text/event-stream with 'rooms-timeline'
events whenever the server's roomsTimelineCache rebuilds (key change).
A 1.5s tick checks the cache; if builtAt advanced, push the new JSON,
otherwise send a SSE comment heartbeat ': ping ts\n\n' to keep proxies
from idle-closing the connection. AbortSignal handler closes the
ReadableStream when the client disconnects.

Frontend: replace setInterval(1500ms) on rooms view with EventSource.
Initial fetch primes the data so first paint isn't blank, then SSE
takes over for instant updates. EventSource auto-reconnects on
disconnect; while it's flapping, a 2s polling fallback runs so data
keeps flowing. When SSE recovers (next 'rooms-timeline' event) the
polling fallback is cleared.

Latency: previously 0–1.5s polling lag; now ~tick latency (50–150ms)
once cache rebuilds.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Add breathing room between timeline header and body

Increase room-timeline-item gap from 2px to 6px so the role chip /
timestamp line has visible breathing room above the parsed body —
header → body relationship reads more clearly. Bump vertical padding
from 6px to 8px and item separator from 1px to 2px to match.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Hide the 2px processing bar in pinned twopane to free role-color borders

.room-card-v2.status-processing::before draws a 2px green bar at the
card's left edge. In pinned twopane mode it sits right on top of each
timeline item's role-colored left border (owner blue / reviewer
orange / arbiter green / human yellow), masking them. The header's
pulse dot already conveys "processing", so suppress the bar in pinned
mode and let the role colors show through.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Polish room compose: tighter pill input + override global button min-height

The 48px button min-height global rule was forcing the compose grid track to
48px, pushing the textarea content visibly down inside the pill. Adding
min-height: 0 on the compose button lets the track collapse to ~29px so the
placeholder lines up with the send button vertically.

Also slimmed paddings (form 3px vert, textarea 4px vert) and added bottom
breathing room on the compose section (8px → 14px) at user request.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Format styles.css to multi-line transition values

Prettier 3.8.1 prefers multi-line transition shorthand. CI was failing
format:check on these single-line transitions in the room-compose rules.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-27 19:45:51 +09:00
Eyejoker
a35433b454 Compact dashboard room progress UI
Compact the Rooms progress panel into a Discord-like current progress strip, show only the latest output by default, and move history/compose controls behind details.
2026-04-27 12:06:47 +09:00
Eyejoker
d28068f646 Add dashboard room activity timeline 2026-04-27 11:46:35 +09:00
Eyejoker
d7fe6fa13a Add dashboard PWA shell and status UX 2026-04-27 10:53:27 +09:00
Eyejoker
76b0ab754b Add dashboard health restart action (#38) 2026-04-27 03:52:24 +09:00
Eyejoker
38c3430156 Add dashboard inbox decline and dismiss actions
Add dashboard inbox decline and dismiss actions
2026-04-27 03:34:36 +09:00
Eyejoker
96845110ee fix(dashboard): harden scheduled task writes (#36) 2026-04-27 03:15:47 +09:00
Eyejoker
92e4e22e4d feat(dashboard): create and edit scheduled tasks 2026-04-27 03:05:04 +09:00
Eyejoker
16aeb0449d feat(dashboard): run paired inbox actions (#34) 2026-04-27 02:39:41 +09:00
Eyejoker
1676f53f4d feat(dashboard): send room messages from web (#33) 2026-04-27 02:23:32 +09:00
Eyejoker
a352b9af5b feat(dashboard): add inbox task actions (#32)
* feat(dashboard): add inbox task actions

* style(dashboard): format inbox actions
2026-04-27 01:47:42 +09:00
Eyejoker
22bd24ec88 feat(dashboard): add scheduled task actions (#31) 2026-04-27 01:36:40 +09:00
Eyejoker
6abbfdd6af fix(dashboard): use inbox terminology (#30) 2026-04-27 01:25:02 +09:00
Eyejoker
06a3a9a340 fix(dashboard): default to concise english labels (#29) 2026-04-27 01:18:16 +09:00
Eyejoker
635f9851bc fix(dashboard): make quota windows first-class (#28) 2026-04-27 01:10:40 +09:00
Eyejoker
4261c7f875 fix(dashboard): show both quota windows (#27) 2026-04-27 00:45:39 +09:00
Eyejoker
84d910de14 fix(dashboard): label remaining quota basis (#26) 2026-04-27 00:32:18 +09:00
Eyejoker
19afc76b89 feat(dashboard): focus ops usage signals (#25)
* feat(dashboard): focus ops usage signals

* style(dashboard): apply usage formatting

* fix(dashboard): hide refresh timestamp noise
2026-04-27 00:25:21 +09:00