Skip to content

Improve LogViewer mobile scrolling#161

Merged
khaliqgant merged 1 commit into
mainfrom
fix/logviewer-mobile-scroll-v2
Jan 12, 2026
Merged

Improve LogViewer mobile scrolling#161
khaliqgant merged 1 commit into
mainfrom
fix/logviewer-mobile-scroll-v2

Conversation

@khaliqgant

Copy link
Copy Markdown
Member

Summary\n- allow touch scroll gestures to reach the xterm viewport on coarse pointers\n- avoid canvas intercepting scroll on mobile devices\n\n## Testing\n- not run

@my-senior-dev-pr-review

Copy link
Copy Markdown

🤖 My Senior Dev — Analysis Complete

👤 For @khaliqgant

📁 Expert in src/dashboard/react-components/ (4 edits) • ⚡ 19th PR this month

View your contributor analytics →


📊 1 file reviewed • 1 high risk • 1 need attention

⚠️ Needs Attention:

  • src/dashboard/react-components/XTermLogViewer.tsx — Changes to pointer events may affect user interaction reliability on mobile devices and could introduce edge case issues on various touch-capable devices.

🚀 Open Interactive Review →

The full interface unlocks features not available in GitHub:

  • 💬 AI Chat — Ask questions on any file, get context-aware answers
  • 🔍 Smart Hovers — See symbol definitions and usage without leaving the diff
  • 📚 Code Archeology — Understand how files evolved over time (/archeology)
  • 🎯 Learning Insights — See how this PR compares to similar changes

💬 Chat here: @my-senior-dev explain this change — or try @chaos-monkey @security-auditor @optimizer @skeptic @junior-dev

📖 View all 12 personas & slash commands

You can interact with me by mentioning @my-senior-dev in any comment:

In PR comments or on any line of code:

  • Ask questions about the code or PR
  • Request explanations of specific changes
  • Get suggestions for improvements

Slash commands:

  • /help — Show all available commands
  • /archeology — See the history and evolution of changed files
  • /profile — Performance analysis and suggestions
  • /expertise — Find who knows this code best
  • /personas — List all available AI personas

AI Personas (mention to get their perspective):

Persona Focus
@chaos-monkey 🐵 Edge cases & failure scenarios
@skeptic 🤨 Challenge assumptions
@optimizer Performance & efficiency
@security-auditor 🔒 Security vulnerabilities
@accessibility-advocate Inclusive design
@junior-dev 🌱 Simple explanations
@tech-debt-collector 💳 Code quality & shortcuts
@ux-champion 🎨 User experience
@devops-engineer 🚀 Deployment & scaling
@documentation-nazi 📚 Documentation gaps
@legacy-whisperer 🏛️ Working with existing code
@test-driven-purist Testing & TDD

For the best experience, view this PR on myseniordev.com — includes AI chat, file annotations, and interactive reviews.

@khaliqgant khaliqgant merged commit c077cf4 into main Jan 12, 2026
6 checks passed
@khaliqgant khaliqgant deleted the fix/logviewer-mobile-scroll-v2 branch January 12, 2026 09:10
willwashburn added a commit that referenced this pull request Jun 9, 2026
Server-side telemetry on the relaycast backend recorded `harness:
"unknown"` for 100% of events, even though the broker already detects the
orchestrator harness (claude-code / codex / cursor / …) for its own
PostHog events. The detected value was siloed in TelemetryClient and never
forwarded to the relaycast SDK, so the `X-Relaycast-Harness` header (HTTP)
and `?harness=` query (WS) were never sent and the backend defaulted to
"unknown".

Forwarding requires SDK >= 2.3.0 (`with_harness` was added in relaycast
#161, published as 2.3.0). Bumping `=2.0.0` -> `=2.3.0` also pulls in the
v8 event contract the gateway already emits, which is a net fix: the
broker at 2.0.0 only recognized the pre-v8 `reaction.added` /
`agent.online` event types, while the deployed gateway sends
`message.reacted` / `agent.status.*` — so reactions and presence were
being silently dropped.

Changes:
- Bump `relaycast` SDK `=2.0.0` -> `=2.3.0`.
- Cache the detected harness in `telemetry::orchestrator_harness{,_opt}()`
  (process-tree detection walks parent PIDs; resolve once) and reuse it
  for both our PostHog events and the forwarded value.
- Forward the harness at all three relaycast client sites: the WS handshake
  (`WsClientOptions::with_harness`) and both HTTP `build_relay_client`
  helpers (`RelayCastOptions::with_harness`).
- Inject `AGENT_RELAY_HARNESS` into spawned-agent env via `spawn_env_vars`
  so JS-SDK agents (`@relaycast/sdk`, env-only harness resolution, no
  process-tree fallback) report it too. Threaded as a parameter for
  deterministic tests.
- Update 3 stale bridge fixtures to the v8 event names the gateway emits
  (`message.reacted` with `action`, `agent.status.active`); fix
  `drops_reaction_without_channel` to exercise the no-channel drop rather
  than an unknown-type drop.

Tests: 701 broker lib tests pass (+2 new harness env tests); clippy clean;
fmt clean.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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