Skip to content

Fix Eden page reload/crash when accessed via Tailscale#403

Closed
criztiano wants to merge 3 commits intobuilderz-labs:mainfrom
criztiano:task/9871aa4e
Closed

Fix Eden page reload/crash when accessed via Tailscale#403
criztiano wants to merge 3 commits intobuilderz-labs:mainfrom
criztiano:task/9871aa4e

Conversation

@criztiano
Copy link

Task: 9871aa4e

@criztiano criztiano requested a review from 0xNyk as a code owner March 16, 2026 00:00
@criztiano criztiano force-pushed the task/9871aa4e branch 2 times, most recently from 9ec6570 to a26542a Compare March 16, 2026 00:11
Phase 1 (WebSocket): Already robust - ping/pong keepalive + backoff reconnection in websocket.ts

Phase 2 (useSmartPoll): Add request deduplication (skip if in-flight), exponential
backoff retry on error (3 attempts: 2s/4s/8s), error state return for UI affordances,
proper retry cleanup on unmount/tab hide

Phase 3 (useServerEvents): Add visibility-based SSE reconnect - when tab regains
focus and EventSource is closed, reset backoff counter and reconnect immediately

Phase 4 (Error Boundaries): Wrap additional recharts ResponsiveContainer instances
in cost-tracker-panel with ErrorBoundary; ReactFlow in agent-network already wrapped

Phase 5: task-board-panel fetchData interval 30s -> 60s to reduce connection pressure
over Tailscale; SSE handles real-time task updates
@0xNyk
Copy link
Member

0xNyk commented Mar 16, 2026

Review

This PR adds agent workspace scaffolding files (AGENTS.md, SOUL.md, workspace-state.json, etc.) alongside the Eden page fix. These are separate concerns:

  1. The Eden page fix should be isolated into its own PR
  2. The workspace/agent scaffolding files (AGENTS.md, BOOTSTRAP.md, etc.) need discussion — they introduce a new agent onboarding convention

No CI runs have executed. Please rebase onto main and ensure pnpm typecheck && pnpm test pass.

- Re-added team-panel.tsx and all /api/team routes (lost during upstream merge)
- Skills catalog with fixed taxonomy (9 categories, no creep)
- Skill browser: category filter pills, tag-based search, active skills at top
- Model selector: native select dropdown (PropertyChip removed — not in upstream)
- Doc editor: textarea (BlockEditor removed — not in upstream)
- skills-catalog.json with 112 categorized skills
- skills-monitor.py: dumb cron that diffs disk vs catalog, files tasks for Roach
- Daily cron at 9AM Rome
@0xNyk
Copy link
Member

0xNyk commented Mar 16, 2026

Thanks for the contribution! A few things before we can review this properly:

Scope concerns — This is labeled as a fix for Eden page reload/crash via Tailscale, but the diff is +2,319 lines across 20 files and includes:

  • A new team-panel.tsx (1,392 lines) — this looks like a full new feature, not a bug fix
  • New API routes: team/agent, team/catalog, team/doc, team/manifest, team/positions
  • An eden.db binary file — this should not be committed to the repo
  • Multiple markdown files (AGENTS.md, SOUL.md, IDENTITY.md, HEARTBEAT.md, TOOLS.md, USER.md) that appear to be agent configuration artifacts
  • Changes to use-smart-poll.ts and cost-tracker-panel.tsx

Could you:

  1. Explain the root cause of the Eden page reload crash and which specific files fix it
  2. Remove the eden.db binary — database files should never be committed
  3. Remove the agent config artifacts (AGENTS.md, SOUL.md, etc.) unless they're intentional project files
  4. Split into separate PRs — the Team Panel feature should be its own PR, separate from the Tailscale fix
  5. Rebase on latest main — the branch is behind

Happy to review once the scope is narrowed down to the actual bug fix.

Copy link
Member

@0xNyk 0xNyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: DO NOT MERGE

Summary

This PR claims to fix an Eden page crash when accessed via Tailscale, but 95% of the changes are unrelated to that fix. It also commits a binary database file.

Critical Issues

  1. Binary eden.db committed — A SQLite database file should never be in the repository. This must be removed and added to .gitignore.

  2. Massive scope creep — The PR contains:

    • New team-panel.tsx (1,392 lines) — entire new feature
    • 5 new API routes (team/*)
    • Agent config artifacts (AGENTS.md, SOUL.md, IDENTITY.md, etc.)
    • Changes to use-smart-poll.ts and cost-tracker-panel.tsx

    None of these are related to the Tailscale fix described in the PR title.

  3. No root cause explanation — It's unclear which specific change actually fixes the Eden page reload/crash. The PR description doesn't identify the root cause.

  4. No tests, no CI validation — No test coverage for any of the changes.

Recommendation

Please close this PR and split into separate, focused PRs:

  • PR-A: Tailscale fix only — identify the specific change that fixes the crash, with a clear root cause explanation
  • PR-B: Team Panel feature — the new team panel as a standalone feature PR with tests

Each PR should have a clear description, passing CI, and appropriate test coverage.

@0xNyk
Copy link
Member

0xNyk commented Mar 17, 2026

Thanks for the crash recovery work! The ErrorBoundary and useSmartPoll hook from this PR are already on main (src/components/ErrorBoundary.tsx and src/lib/use-smart-poll.ts). The page-level wrapping is in src/app/[[...panel]]/page.tsx. No additional work needed.

@0xNyk
Copy link
Member

0xNyk commented Mar 17, 2026

ErrorBoundary + useSmartPoll already on main — no remaining work to cherry-pick.

@0xNyk 0xNyk closed this Mar 17, 2026
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.

2 participants