Skip to content

WAV/MP3 format toggle, rolling debug log, auto-open debug on error#17

Open
Copilot wants to merge 21 commits intomainfrom
copilot/add-lego-mode-instrumental-tracks
Open

WAV/MP3 format toggle, rolling debug log, auto-open debug on error#17
Copilot wants to merge 21 commits intomainfrom
copilot/add-lego-mode-instrumental-tracks

Conversation

Copy link
Contributor

Copilot AI commented Mar 12, 2026

Two UX/DX gaps addressed: no way to choose output format from the UI, and the debug console wiped logs on each job making post-mortem debugging impossible.

Output format toggle (WAV / MP3)

  • MP3 is now the default — native binary output, no --wav flag passed to dit-vae
  • WAV adds --wav flag explicitly; FLAC support removed entirely (never existed upstream)
  • audioFormat: 'wav' | 'mp3' propagated through types.ts, services/api.ts, and RunParams in acestep.ts
  • Spawn mode: straightforward branch — wantWav ? ditArgs.push('--wav') : (nothing); file collection glob matches .mp3 or .wav accordingly; all ffmpeg conversion code removed
  • Advanced panel → Output section: MP3/WAV two-button toggle (MP3 selected by default, orange; WAV sky-blue)

Format badge in song catalog

  • SongList derives format from song.audioUrl extension and renders a colour-coded badge (MP3 orange, WAV sky-blue) alongside the model badge

Rolling debug log

  • Module-level rollingLog[] and offsetByJob Map live outside the React component, surviving remounts for the full tab session
  • All jobs are polled concurrently; each job's lines are appended to a single combined log prefixed with === Job {id} [time] — STATUS === headers
  • "Clear" wipes both display and the module-level store; job selector scrolls to that job's section via data-job span attributes

Auto-open debug on job failure

} else if (status.status === 'failed') {
  cleanupJob(jobId, tempId);
  showToast(...);
  setCurrentView('debug');
  window.history.pushState({}, '', '/debug');
}

When polling detects a failed job, the UI immediately navigates to /debug so the full log is visible without manual intervention.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot AI changed the title [WIP] Add LEGO mode to generate custom instrumental tracks Add LEGO mode (instrumental track generation) and Ace Understand (AI audio analysis) Mar 12, 2026
Copilot AI and others added 2 commits March 12, 2026 17:15
Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
…paint/Lego block

Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot AI changed the title Add LEGO mode (instrumental track generation) and Ace Understand (AI audio analysis) feat: LEGO mode + Ace Understand; fix --wav output and UI cleanup Mar 12, 2026
Copilot AI requested a review from lmangani March 12, 2026 17:28
… double-selection

Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot AI changed the title feat: LEGO mode + Ace Understand; fix --wav output and UI cleanup fix: unified single-mode panel, remove Simple/Custom toggle, fix LEGO mode Mar 12, 2026
…n UX

Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot AI changed the title fix: unified single-mode panel, remove Simple/Custom toggle, fix LEGO mode fix: unified create panel — remove Simple/Custom split, fix LEGO as first-class tab Mar 12, 2026
…ized)

Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot AI changed the title fix: unified create panel — remove Simple/Custom split, fix LEGO as first-class tab feat: LEGO as first-class audio tab + live Debug console Mar 12, 2026
…ed audio

Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
…o spawn mode

Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot AI changed the title Fix lego mode: correct model/shift params, remove redundant UI, persist form state Lego tab: remove duplicate Complete Track Classes block; redesign Advanced panel for acestep-cpp Mar 12, 2026
Copilot AI and others added 2 commits March 12, 2026 23:51
… to acestep-cpp values

Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
…anel

Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot AI changed the title Lego tab: remove duplicate Complete Track Classes block; redesign Advanced panel for acestep-cpp Advanced panel: acestep-cpp params only, fix model presets, full-width LM sliders Mar 12, 2026
…st text2music

Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot AI changed the title Advanced panel: acestep-cpp params only, fix model presets, full-width LM sliders Fix Advanced panel: remove non-applicable controls, always show all acestep-cpp params Mar 13, 2026
Copilot stopped work on behalf of lmangani due to an error March 13, 2026 00:10
Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot AI changed the title Fix Advanced panel: remove non-applicable controls, always show all acestep-cpp params Reorder top panel blocks to logical creation flow Mar 13, 2026
… persistence

Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot AI changed the title Reorder top panel blocks to logical creation flow Reorder top panel blocks, add spacing, default advanced closed, URL workspace persistence Mar 13, 2026
…rror

Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot AI changed the title Reorder top panel blocks, add spacing, default advanced closed, URL workspace persistence UI improvements: element spacing, advanced panel default, URL workspace persistence, WAV/MP3 format toggle, rolling debug log Mar 13, 2026
…--wav flag

Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot AI changed the title UI improvements: element spacing, advanced panel default, URL workspace persistence, WAV/MP3 format toggle, rolling debug log WAV/MP3 format toggle, rolling debug log, auto-open debug on error Mar 13, 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