Skip to content

fix(frontend): repair SessionsTable JSX from botched merge#4822

Merged
mmabrouk merged 3 commits into
big-agentsfrom
fix/web-sessions-table-jsx
Jun 24, 2026
Merged

fix(frontend): repair SessionsTable JSX from botched merge#4822
mmabrouk merged 3 commits into
big-agentsfrom
fix/web-sessions-table-jsx

Conversation

@mmabrouk

@mmabrouk mmabrouk commented Jun 24, 2026

Copy link
Copy Markdown
Member

Symptom

The mainbig-agents merge (in #4791) broke frontend CI two ways:

  1. TypeScript format / lint: SessionsTable/index.tsx had a duplicate {isEmptyState ? ...} ternary and a mismatched <div></SessionStoreProvider> wrapper (a hard JSX syntax error).
  2. agenta-web build (amd64 + arm64): @agenta/entities failed to type-check — appUtils.ts built its ephemeral-workflow flags without the newly-added (defaulted) is_agent flag, so the as Workflow cast failed bidirectional overlap (TS2352). next lint does not catch this; the build's tsc does.

Fix

  1. Unite both merge sides of SessionsTable: wrap in <SessionStoreProvider>, keep one table retaining store={store} and the flex-1 layout class.
  2. Set is_agent: type === 'agent' in the constructed flags.

Verification

  • prettier --check + eslint on SessionsTable: pass.
  • @agenta/entities pnpm run types:check: exit 0.

https://claude.ai/code/session_01DEZYALzKjh9ocjkscaBWRT

The main->big-agents merge left a duplicate ternary and a mismatched
<div>/</SessionStoreProvider> wrapper, breaking prettier, eslint and the
web build. Unite both sides: wrap in SessionStoreProvider, keep one
table with store={store} and the flex-1 layout class.

Claude-Session: https://claude.ai/code/session_01DEZYALzKjh9ocjkscaBWRT
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jun 24, 2026
@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Jun 24, 2026 5:37pm

Request Review

@dosubot dosubot Bot added bug Something isn't working Frontend labels Jun 24, 2026
@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 18e960d8-5bfa-4367-a188-b52a1668513b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/web-sessions-table-jsx

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

The merge added a defaulted is_agent flag to workflowFlagsSchema, but the
agent-playground ephemeral workflow constructed its flags without it. With
the literal true/false flag values, the 'as Workflow' cast then failed
bidirectional overlap (TS2352), breaking the agenta-web build. Set
is_agent from the workflow type.

Claude-Session: https://claude.ai/code/session_01DEZYALzKjh9ocjkscaBWRT
Two more tsc --noEmit failures broke the agenta-web build (turbo builds
each package before the app):
- agentRequest.ts: annotate headers as Record<string,string> so the
  conditional header-factory spread does not narrow away the index
  signature (Authorization access, TS2339).
- AgentConfigControl.tsx: drop the stale 'default' key from
  CONNECTION_MODE_LABELS; ConnectionMode is agenta|self_managed only
  after the provider-model-auth refactor (TS2353).

Claude-Session: https://claude.ai/code/session_01DEZYALzKjh9ocjkscaBWRT
@mmabrouk mmabrouk merged commit 81cef10 into big-agents Jun 24, 2026
30 of 32 checks passed
@mmabrouk mmabrouk deleted the fix/web-sessions-table-jsx branch June 24, 2026 17:44
@github-actions

Copy link
Copy Markdown
Contributor

Railway Preview Environment

Image tag pr-4822-e9a276a
Status Failed
Railway logs Open logs
Logs View workflow run
Updated at 2026-06-24T17:44:36.804Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Frontend size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant