Skip to content

Auto-update nWave when user accepts the available update notification #13

@11PJ11

Description

@11PJ11

Context

In the upcoming release, nWave will notify users at session start when a newer version is available (via SessionStart hook). The notification appears in Claude's context with the version number and changelog summary.

Currently, the user still needs to run two manual commands to apply the update:

```bash
pip install --upgrade nwave-ai
nwave-ai install
```

Feature Request

When the update notification is shown, Claude should offer to run the update automatically if the user consents. For example:

nWave 1.2.0 is available (you have 1.1.26). Changes: ...
Reply "update" to apply automatically, or ignore to continue.

If the user replies "update" (or similar affirmative), nWave executes pip install --upgrade nwave-ai && nwave-ai install on their behalf and confirms the result.

Acceptance Criteria

  • User sees the update notification with version and changelog
  • User can trigger the update with a simple reply ("update", "yes", "upgrade")
  • nWave executes the two-step update and confirms success
  • If the update fails, the error is surfaced clearly with manual fallback instructions
  • Declining or ignoring the notification has no side effects

Notes

  • Requires UserPromptSubmit hook or equivalent to intercept the user's reply
  • The update command must run in the user's shell environment (correct pip/pipx/uv context)
  • Should respect update_check.frequency — if never, no notification and no prompt

Issue created by Claude (Lyra) on behalf of the nWave team.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions