Skip to content

fix(ui): add explicit types to terminalStore callbacks - #750

Merged
kovtcharov-amd merged 1 commit into
mainfrom
kalin/fix-terminal-store-types
Apr 11, 2026
Merged

kovtcharov-amd merged 1 commit into
mainfrom
kalin/fix-terminal-store-types

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

Summary

  • Fixes TypeScript compilation failure in the Publish to npm job: https://github.com/amd/gaia/actions/runs/24279178148/job/70898457497
  • terminalStore.ts callbacks (setPaused, setActiveTab, openTerminal, setShowTerminal) relied on Zustand type inference for parameter types, but tsc flagged them as implicit any during the build
  • Added explicit parameter type annotations matching the TerminalState interface

Test plan

  • npx tsc --noEmit passes locally with zero errors
  • Merge, move tag, verify npm publish step passes

🤖 Generated with Claude Code

The Zustand store callbacks for setPaused, setActiveTab, openTerminal,
and setShowTerminal relied on type inference from the TerminalState
interface, but tsc flagged them as implicit `any` during the npm
publish build step. Add explicit parameter types.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Apr 11, 2026
Merged via the queue into main with commit 2e6553d Apr 11, 2026
23 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the kalin/fix-terminal-store-types branch April 11, 2026 09:13
github-merge-queue Bot pushed a commit that referenced this pull request Apr 11, 2026
## Summary

- Fixes the `Publish to npm` job failure:
https://github.com/amd/gaia/actions/runs/24279365243/job/70899004478
- **Root cause:** `npm publish` triggers `prepublishOnly` → `tsc && vite
build`, but the job installs only production deps (`--omit=dev`). `tsc`
fails because `@types/react`, `typescript`, etc. are missing.
- **Fix:** Add `--ignore-scripts` to `npm publish`. The dist/ is already
pre-built in the `build-npm` job and downloaded as an artifact — the
prepublishOnly rebuild is redundant.

> Fix #5 for the v0.17.2 publish pipeline, after #747 (YAML indent),
#748 (permissions), #749 (macOS signing), #750 (terminalStore types).

## Test plan

- [ ] Merge, move tag, verify npm publish succeeds

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.6 (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.

2 participants