Skip to content

fix(frontend): Clear button does not work in playground#4197

Merged
ashrafchowdury merged 2 commits intorelease/v0.96.8from
fix/4185-playground-clear
Apr 21, 2026
Merged

fix(frontend): Clear button does not work in playground#4197
ashrafchowdury merged 2 commits intorelease/v0.96.8from
fix/4185-playground-clear

Conversation

@ashrafchowdury
Copy link
Copy Markdown
Contributor

Summary

  • Route the playground Clear button through an execution-item clear action that clears generated output and completion-mode testcase input state.
  • Reset local completion playground rows to a single empty testcase.
  • For connected testsets, remove locally added testcase rows and discard edits while preserving existing connected testcases.

Root Cause

The Clear button only used the run-output clearing path, so completion-mode testcase input rows and edited testcase data could remain in the playground after clearing.

Validation

  • pnpm lint-fix
  • pnpm --filter @agenta/entities types:check
  • pnpm --filter @agenta/playground types:check
  • pnpm --filter @agenta/playground-ui types:check
  • Commit hook: ruff checks skipped for no Python files, web prettier, turbo lint, and staged gitleaks passed
  • Pre-push hook: ruff checks skipped for no Python files, web prettier, turbo lint, staged gitleaks, and diff gitleaks passed

Closes #4185

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 20, 2026

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

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Apr 21, 2026 0:39am

Request Review

@ashrafchowdury ashrafchowdury marked this pull request as ready for review April 20, 2026 18:52
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. bug Something isn't working Frontend labels Apr 20, 2026
@ashrafchowdury ashrafchowdury changed the title [4185] fix(frontend): Clear button does not work in playground fix(frontend): Clear button does not work in playground Apr 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 20, 2026

Railway Preview Environment

Status Destroyed (PR closed)

Updated at 2026-04-21T13:32:11.283Z

@ardaerzin
Copy link
Copy Markdown
Contributor

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

- If this code review was useful, please react with 👍. Otherwise, react with 👎.

@ashrafchowdury ashrafchowdury changed the base branch from main to release/v0.96.8 April 21, 2026 12:37
@ashrafchowdury ashrafchowdury merged commit 7569060 into release/v0.96.8 Apr 21, 2026
25 of 26 checks passed
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.

Clear button does not work in playground

2 participants