Commit Graph

28549 Commits (4329d94de3a71803db177ee50af68eb75d7ea06b)
 

Author SHA1 Message Date
Eva aaf5307638 fix(gateway): seq-based cursor pagination + sanitize SSE fast path
- Pagination now searches by message seq value instead of using
  cursorSeq-1 as array index. After sanitization drops rows, seqs
  become sparse and positional indexing breaks cursor traversal.
- SSE unbounded fast path now sanitizes incremental messages through
  sanitizeChatHistoryMessages before emitting, so NO_REPLY and
  directive messages are suppressed consistently with initial history.
8 months ago
Eva 22d8e47a50 fix(agents,gateway): adopt phase-aware assistant text extraction 8 months ago
Peter Steinberger 0b9993df95
fix(agents): keep phaseless OpenAI WS text buffered until phase resolves (#61968)
* fix(agents): gate WS text delta emission on valid phase value, not map key existence

When output_item.added arrives without phase metadata, outputItemPhaseById
stores undefined. The previous .has() check returned true for undefined
values, bypassing the buffering gate and leaking commentary as unphased
visible content.

Fix: change .has() to .get() !== undefined on both delta and done handlers.

Fixes #61477

* docs: note WS phase buffering fix (#61954) (thanks @100yenadmin)

* test(agents): cover phaseless WS output_text.done buffering (#61954)

* test(commands): fix session-store import path for tsgo (#61968)

---------

Co-authored-by: Eva <eva@100yen.org>
8 months ago
Vincent Koc 56136c83b7 refactor(plugins): type sync hook handlers 8 months ago
Peter Steinberger c22372dec6
fix(ci): restore discord and feishu lifecycle tests 8 months ago
Peter Steinberger de20d3a024
refactor(plugin-sdk): add simple completion runtime entrypoint 8 months ago
Peter Steinberger 7785dc21e6
fix(discord): drop generated thread title temperature 8 months ago
Peter Steinberger 6cc54e5059
fix(extensions): restore lint-safe xai imports 8 months ago
Peter Steinberger 7a5e65c71b
test(channels): fix add and facade fixtures 8 months ago
Vincent Koc 44cd91b0a9 fix(feishu): load lifecycle mocks before card action imports 8 months ago
Mason 2d7d99f66e
docs: quote plan title frontmatter (#61962) 8 months ago
jjjojoj 281ea15550 fix: narrow queryTokenHint guard to only auth-specific errors, remove overly broad connect failed check 8 months ago
jjjojoj 39c721d382 fix: detect ?token= and suggest #token= fragment syntax
When users visit the Control UI with ?token=<token>, they see
"device identity required" with no hint about the correct URL format.

This change:
- Detects when token is read from query string vs URL fragment
- Warns via console when ?token= is used
- Shows an inline hint in the overview error area directing users
  to use #token=<token> instead

Fixes #54842
8 months ago
Peter Steinberger cfb7779584
refactor(deadcode): remove agent command shims 8 months ago
Peter Steinberger d5bfc79112
fix(discord): preserve stack hints for empty gateway type errors 8 months ago
Vincent Koc 90d246959b fix(matrix): align forged mention test with route precheck 8 months ago
Vincent Koc 4ef8f4f53c docs: add media overview page and consolidate TTS duplicate 8 months ago
Peter Steinberger 41c700fe9e
refactor(deadcode): remove command auth shims 8 months ago
Vincent Koc d425aa0912 fix(feishu): await websocket startup in cleanup test 8 months ago
Peter Steinberger 514328a9ad
style(repo): format touched helpers and tests 8 months ago
Peter Steinberger 9ca935720c
style(preview): format dream diary preview files 8 months ago
Vincent Koc ab564f8446 docs: add async task lifecycle to video and music generation 8 months ago
Peter Steinberger 0c5e6037b0
fix(openai): clarify auth routes in picker and docs 8 months ago
Peter Steinberger 2b6e08bbfa
refactor: remove confirmed dead helpers 8 months ago
Peter Steinberger d82644cdc8
chore(deadcode): fix knip scan config 8 months ago
Peter Steinberger d7e3df5eaa
perf(test): expand light lane routing 8 months ago
jjjojoj c1c1c0f351 fix: increase padding-right to 70px to fully clear two action buttons 8 months ago
jjjojoj c52d896ef0 fix: remove accidental log file and add has-copy class to chat bubbles
- Remove mistakenly committed openclaw-2026-04-03.log
- Add 'has-copy' CSS class to chat bubbles when copy button is present,
  so the .chat-bubble.has-copy padding-right rule actually applies
8 months ago
jjjojoj a55d45de3c fix: prevent Canvas/Copy icons from overlapping chat bubble text
Increase right padding on .chat-bubble.has-copy from 36px to 62px to
accommodate both copy and canvas action buttons without obscuring text.

Fixes #61514
8 months ago
Peter Steinberger 16d0f0567e fix: preserve legacy replay phase boundaries (#61529) (thanks @100yenadmin) 8 months ago
Eva a200a746fc fix(agents): correct phase-buffering test expectation for mid-stream deltas 8 months ago
Eva a58726e1ed fix(agents): inherit message-level phase for untagged blocks during replay splitting
Fixes #61476

Untagged text blocks in mixed assistant messages were forced to undefined
phase when any sibling had an explicit textSignature phase. Now they
correctly inherit the message-level assistantMessagePhase, preventing
commentary leaks during history replay.

Removes the hasExplicitBlockPhase scan — untagged blocks always inherit
m.phase. Blocks with explicit textSignature.phase still use their own.

94/94 tests pass. Regression test added for mixed explicit/untagged blocks.
8 months ago
Vincent Koc f94a018191 perf(test): slim secrets runtime coverage hotspot 8 months ago
Peter Steinberger 1fb44f0aad
fix: separate selected session model resolution 8 months ago
jjjojoj 0f8480ca0b fix: add max-height, flex layout, and scrollable command preview for mobile approval card 8 months ago
jjjojoj 77f9f6112e fix: add bottom safe-area-inset for mobile approval overlay 8 months ago
Vincent Koc eef20a87d0 refactor(lint): report unused disable directives in root oxlint 8 months ago
Vincent Koc 9c3d9c5c18 chore(lint): drop stale repo lint comments 8 months ago
Peter Steinberger 7f336aba56
fix(discord): normalize gateway fatal type errors 8 months ago
Vincent Koc c7a562683a chore(agents): drop stale lint comments 8 months ago
Vincent Koc cb770057b0 chore(lint): drop stale config and gateway lint comments 8 months ago
Vincent Koc 2537ae503d chore(plugins): drop stale core channel lint comments 8 months ago
Peter Steinberger 378b2c2f5c
fix(check): absorb latest main lint drift 8 months ago
Peter Steinberger d12029a15a
fix(check): repair plugin runtime type drift batch 8 months ago
Vincent Koc 8fe7b3730f fix(check): restore gateway status tls mock typing 8 months ago
Lewis 1234c873bc
fix(msteams): add SSRF validation to file consent upload URL (#23596)
* fix(msteams): add SSRF validation to file consent upload URL

The uploadToConsentUrl() function previously accepted any URL from the
fileConsent/invoke response without validation. A malicious Teams tenant
user could craft an invoke activity with an attacker-controlled uploadUrl,
causing the bot to PUT file data to arbitrary destinations (SSRF).

This commit adds validateConsentUploadUrl() which enforces:

1. HTTPS-only protocol
2. Hostname must match a strict allowlist of Microsoft/SharePoint
   domains (sharepoint.com, graph.microsoft.com, onedrive.com, etc.)
3. DNS resolution check rejects private/reserved IPs (RFC 1918,
   loopback, link-local) to prevent DNS rebinding attacks

The CONSENT_UPLOAD_HOST_ALLOWLIST is intentionally narrower than the
existing DEFAULT_MEDIA_HOST_ALLOWLIST, excluding overly broad domains
like blob.core.windows.net and trafficmanager.net that any Azure
customer can create endpoints under.

Includes 47 tests covering IPv4/IPv6 private IP detection, protocol
enforcement, hostname allowlist matching, DNS failure handling, and
end-to-end upload validation.

* fix(msteams): validate all DNS answers for consent uploads

* fix(msteams): restore changelog header

---------

Co-authored-by: Brad Groux <bradgroux@users.noreply.github.com>
8 months ago
Vincent Koc c921a6ecad refactor(lint): report unused extension lint disables 8 months ago
Peter Steinberger a010ce462f
perf(test): split light vitest lanes and restore hooks 8 months ago
Vincent Koc 5765c4cb2a fix(check): repair latest command and stream type drift 8 months ago
Vincent Koc 4d405ac5ae chore(plugins): drop final dead test any suppressions 8 months ago