Reject token-length-truncated OpenAI-compatible answers
Fixes #1148
Summary
OpenAI-compatible and Azure OpenAI streams now treat finish_reason === 'length' as a terminal error instead of a completed answer. The partial text already streamed to the card remains visible, but the request is aborted and the truncated turn is not written with pushRecord() or reported as done; other finish reasons keep the existing completion behavior.
The error uses one shared localization key with a {{maxTokens}} interpolation placeholder, translations in every locale, and handlePortError() interpolation before display, so users see the configured response-token limit in their selected language.
Added regression coverage for both providers showing that a length-limited partial answer rejects, is not saved to conversationRecords, and does not post a successful completion. Also added handlePortError() coverage for interpolated translation.
Validation
npm run pretty— passednpm run lint— passednpm test— 1125 passednpm run build— passed; expected Chromium build artifacts verified- Manual browser smoke tests skipped: no live provider credentials are available in this environment.