Add a "send now" button to queued AI-chat messages: it interrupts the running agent and immediately sends that message, while the agent's partial output at interruption is kept in history and the next turn is marked as a user interrupt. Client: - queue-helpers: pure `promoteToHead` to move a queued message to the head. - chat-thread: `sendNow` (promote head + abort + flush-on-abort), one-shot `flushOnAbortRef`/`interruptNextSendRef`, `interrupted` flag in the request body, and the "send now" ActionIcon in the queued list. Server: - `interrupted` on AiChatStreamBody; pure `isInterruptResume` confirms the client hint against persisted history (prev assistant turn aborted/ streaming) before honouring it. - prompt: INTERRUPT_NOTE injected in the context section only on a confirmed interrupt-resume turn so the model treats the partial answer above as incomplete. Tests: promoteToHead, chat-thread send-now (abort + resend + one-shot interrupt flag + non-streaming immediate send), isInterruptResume, and the prompt interrupt-note injection. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
A progressive Node.js framework for building efficient and scalable server-side applications.
Description
Nest framework TypeScript starter repository.
Installation
$ npm install
Running the app
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Migrations
# This creates a new empty migration file named 'init'
$ npm run migration:create --name=init
# Generates 'init' migration file from existing entities to update the database schema
$ npm run migration:generate --name=init
# Runs all pending migrations to update the database schema
$ npm run migration:run
# Reverts the last executed migration
$ npm run migration:revert
# Reverts all migrations
$ npm run migration:revert
# Shows the list of executed and pending migrations
$ npm run migration:show
## Test
```bash
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Support
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
Stay in touch
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
License
Nest is MIT licensed.