Skip to content

Align interactive handler types and Tasks client#324

Draft
kin0992 wants to merge 4 commits into
mainfrom
refactors/webapp-using-skills
Draft

Align interactive handler types and Tasks client#324
kin0992 wants to merge 4 commits into
mainfrom
refactors/webapp-using-skills

Conversation

@kin0992

@kin0992 kin0992 commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

Make interactive handlers async and add a TasksClient to centralize API calls so server-only logic remains server-side and the UI can await operations consistently. This changes handler signatures (onTaskComplete now returns Promise); update any call sites to the async signature.

Make interactive handlers async and add a TasksClient to centralize API
calls so server-only logic remains server-side and the UI can await
operations consistently. This changes handler signatures (onTaskComplete now
returns Promise<void>); update any call sites to the async signature.
@changeset-bot

changeset-bot Bot commented Jan 30, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 2a9bc98

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Validate required environment variables on the server to fail fast with
clear errors and to prevent leaking runtime secrets into client bundles. Run
pnpm install to add zod if needed and ensure .env.local is created from
.env.local.example; verify the validation module is only imported on the
server.
Validate required environment variables on the server using Zod to avoid
leaking secrets and to fail fast when configuration is missing. Run
pnpm install to add zod and ensure .env.local contains the required vars;
keep this module server-only to avoid client-side imports.
Errors are now logged and surfaced via component state instead of being
rethrown. This prevents uncaught exceptions and lets the UI present
consistent error states.

Follow-up: audit other clients for the same pattern and add tests to
assert error handling is reflected in state.
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