Skip to content

feat(chat): migrate to charm v2 stack (wish/v2 v2.0.6) — #17343 slice 3 - #17420

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/17343-chat-v2
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/17343-chat-v2

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Refs #17343 — slice 3 (chat) of the charm-v2 migration. pkgs/tea landed in PR #17389; pkgs/launcher is blocked on the unpublished wishlist v2 (recorded on #17343, comment 7287929441).

What changes

pkgs/chat pinned the vulnerable github.com/charmbracelet/wish v1.4.7 for bubbletea/logging middleware only (it never registers the SCP middleware — dependency-presence alert #328). This migrates it to the charm v2 stack, mirroring the tea/identity slices:

  • charm.land/wish/v2 v2.0.6, charm.land/ssh v0.4.3, charm.land/bubbletea/v2 v2.1.3, charm.land/bubbles/v2 v2.1.1, charm.land/lipgloss/v2 v2.0.6. github.com/charmbracelet/wish no longer appears in pkgs/chat's go.mod/go.sum.
  • wish/v2's bubbletea MiddlewareWithProgramHandler no longer takes a termenv color profile (options derive from the session); the termenv import is dropped.
  • Bubbletea v2 model port: View() returns tea.View; key handling switches on tea.KeyPressMsg strings — ctrl+c/esc quit and enter send, the same bindings the v1 tea.KeyMsg Type switch implemented (including the chat: pressing Enter on an empty input broadcasts an empty message to every session #3273 empty-message guard, untouched).
  • Bubbles v2: viewport options constructor; textarea styles via Styles()/SetStyles (the Focused.CursorLine reset is preserved).

Verification

  • Remote dispatch run 46483924528 at head 9896334, conclusion success; log read firsthand: 14 PASS / 0 FAIL, package ok. Local go build + go vet clean.
  • Tests were ported to the v2 message types (KeyPressMsg{Code: tea.KeyEnter}, recording model View() tea.View); no test logic changed.
  • Full diff read at head before merge.
{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-30T18:31:41Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "1afb80aa405c56b71c8a63176670cb22ba449a92"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

pkgs/chat imported wish only for bubbletea/logging middleware and never
registered the SCP middleware (dependency-presence alert #328), but its
go.mod pinned the vulnerable wish v1.4.7. Migrate to
charm.land/wish/v2 v2.0.6 + charm.land/ssh v0.4.3 + bubbletea/bubbles/
lipgloss v2:

- wish/v2 bubbletea MiddlewareWithProgramHandler no longer takes a
  termenv color profile (the v2 middleware derives options from the
  session); termenv import dropped.
- Model ported to bubbletea v2: View() returns tea.View, key handling
  switches on tea.KeyPressMsg strings (ctrl+c/esc quit, enter send —
  same bindings as the v1 tea.KeyMsg Type switch).
- bubbles v2: viewport options constructor; textarea styles via
  Styles()/SetStyles (Focused.CursorLine reset preserved).
- Tests ported to the v2 message types (KeyPressMsg{Code: KeyEnter},
  recordingModel View() tea.View); all 14 pass.

wish no longer appears in pkgs/chat's go.mod/go.sum, removing alert
#328's dependency-presence basis. Refs #17343.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bce1fac9-0147-4d03-9a3b-d079b9cd059f

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
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@developing-today-fleet
developing-today-fleet Bot merged commit 1dd62f8 into main Nov 30, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the xaltha/17343-chat-v2 branch November 30, 2026 18:32
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