Skip to content

fix(slack): keep prototype-named emoji shortcodes intact - #136374

Merged
vincentkoc merged 1 commit into
openclaw:mainfrom
teddytennant:fix/slack-emoji-prototype-key
Sep 6, 2026
Merged

vincentkoc merged 1 commit into
openclaw:mainfrom
teddytennant:fix/slack-emoji-prototype-key

Conversation

@teddytennant

@teddytennant teddytennant commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where reacting with a Slack custom emoji whose name collides with an Object.prototype key sent a broken reactions.add request. constructor, __proto__ and toString are legal custom emoji names. Reacting with constructor or toString put the inherited function in the name field, which the WebClient's form encoder drops, so the request reached Slack with no name at all. __proto__ went out as name={}.

Why This Change Was Made

normalizeSlackEmojiName indexed the glyph-to-shortcode object literal with the caller-supplied name, so an inherited value came back instead of undefined. Inherited values are truthy, so the shortname ?? withoutColons pass-through never ran. The table is now a Map, matching SLACK_EMOJI_SKIN_TONE_BY_MODIFIER twelve lines above it, which never had the problem. It is module-private with one reader.

User Impact

Custom emoji named constructor, toString and the rest react like any other name. Known glyphs and skin-tone variants are unchanged.

Evidence

Rebased onto b6a4d0dad43. The two red checks on the previous head were security-fast and the ci-gate that mirrors it, both the "Audit production dependencies" advisory timeout.

Real behavior through reactSlackMessage and removeSlackReaction in extensions/slack/src/actions.ts, with the real @slack/web-api 8.0.0 WebClient from the extension's own getSlackWriteClient factory. The only stand-in is the Slack host: slackApiUrl points at a local http.createServer that records each raw request and answers {"ok":true}. Nothing in the reaction path is mocked. Same script, same inputs, run once with actions.ts from b6a4d0dad43 and once on this branch.

Before, actions.ts from main:

$ git checkout upstream/main -- extensions/slack/src/actions.ts
$ node --import ./scripts/tsx.mjs EVIDENCE/reaction-trace.mts
slack stand-in listening at http://127.0.0.1:45607/api/

reactSlackMessage("constructor")
  POST /api/reactions.add [application/x-www-form-urlencoded] channel=C0TRACE&timestamp=1700000000.000100

reactSlackMessage(":toString:")
  POST /api/reactions.add [application/x-www-form-urlencoded] channel=C0TRACE&timestamp=1700000000.000100

reactSlackMessage("__proto__")
  POST /api/reactions.add [application/x-www-form-urlencoded] channel=C0TRACE&timestamp=1700000000.000100&name=%7B%7D

reactSlackMessage("thumbsup")
  POST /api/reactions.add [application/x-www-form-urlencoded] channel=C0TRACE&timestamp=1700000000.000100&name=thumbsup

reactSlackMessage("👍")
  POST /api/reactions.add [application/x-www-form-urlencoded] channel=C0TRACE&timestamp=1700000000.000100&name=thumbsup

reactSlackMessage("👍🏽")
  POST /api/reactions.add [application/x-www-form-urlencoded] channel=C0TRACE&timestamp=1700000000.000100&name=thumbsup%3A%3Askin-tone-4

removeSlackReaction("constructor")
  POST /api/reactions.remove [application/x-www-form-urlencoded] channel=C0TRACE&timestamp=1700000000.000100

After, this branch (git checkout HEAD -- extensions/slack/src/actions.ts first):

$ node --import ./scripts/tsx.mjs EVIDENCE/reaction-trace.mts
slack stand-in listening at http://127.0.0.1:35981/api/

reactSlackMessage("constructor")
  POST /api/reactions.add [application/x-www-form-urlencoded] channel=C0TRACE&timestamp=1700000000.000100&name=constructor

reactSlackMessage(":toString:")
  POST /api/reactions.add [application/x-www-form-urlencoded] channel=C0TRACE&timestamp=1700000000.000100&name=toString

reactSlackMessage("__proto__")
  POST /api/reactions.add [application/x-www-form-urlencoded] channel=C0TRACE&timestamp=1700000000.000100&name=__proto__

reactSlackMessage("thumbsup")
  POST /api/reactions.add [application/x-www-form-urlencoded] channel=C0TRACE&timestamp=1700000000.000100&name=thumbsup

reactSlackMessage("👍")
  POST /api/reactions.add [application/x-www-form-urlencoded] channel=C0TRACE&timestamp=1700000000.000100&name=thumbsup

reactSlackMessage("👍🏽")
  POST /api/reactions.add [application/x-www-form-urlencoded] channel=C0TRACE&timestamp=1700000000.000100&name=thumbsup%3A%3Askin-tone-4

removeSlackReaction("constructor")
  POST /api/reactions.remove [application/x-www-form-urlencoded] channel=C0TRACE&timestamp=1700000000.000100&name=constructor

The three prototype-named rows are the only lines that differ. thumbsup, the 👍 glyph and the 👍🏽 skin-tone variant encode the same way before and after.

The script, unchanged between the two runs:

import http from "node:http";
import { reactSlackMessage, removeSlackReaction } from "../extensions/slack/src/actions.ts";
import { getSlackWriteClient } from "../extensions/slack/src/client.ts";

const requests: string[] = [];
const server = http.createServer((req, res) => {
  let body = "";
  req.on("data", (chunk) => (body += chunk));
  req.on("end", () => {
    requests.push(`${req.method} ${req.url} [${req.headers["content-type"]}] ${body}`);
    res.setHeader("content-type", "application/json");
    res.end(JSON.stringify({ ok: true }));
  });
});
await new Promise<void>((resolve) => server.listen(0, "127.0.0.1", resolve));
const port = (server.address() as { port: number }).port;
const slackApiUrl = `http://127.0.0.1:${port}/api/`;
console.log(`slack stand-in listening at ${slackApiUrl}`);

const client = getSlackWriteClient("xoxb-trace-token", { slackApiUrl });
const channel = "C0TRACE";
const timestamp = "1700000000.000100";

const inputs = ["constructor", ":toString:", "__proto__", "thumbsup", "👍", "👍🏽"];
for (const emoji of inputs) {
  const before = requests.length;
  try {
    await reactSlackMessage(channel, timestamp, emoji, { client });
  } catch (err) {
    requests.push(`ERROR ${String(err)}`);
  }
  console.log(`\nreactSlackMessage(${JSON.stringify(emoji)})`);
  for (const line of requests.slice(before)) console.log(`  ${line}`);
}
{
  const before = requests.length;
  await removeSlackReaction(channel, timestamp, "constructor", { client });
  console.log(`\nremoveSlackReaction("constructor")`);
  for (const line of requests.slice(before)) console.log(`  ${line}`);
}
server.close();

The three rows added to actions.reactions.test.ts pin the same thing at the client boundary. On the old lookup :toString: reached the client as name: [Function toString] and all three fail; they pass on the Map.

$ node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-slack.config.ts \
    extensions/slack/src/actions.reactions.test.ts
 ✓ normalizes ':constructor:' to 'constructor'
 ✓ normalizes '__proto__' to '__proto__'
 ✓ normalizes ':toString:' to 'toString'

 Test Files  1 passed (1)
      Tests  16 passed (16)

actions.reactions-limit.test.ts next to it also passes, 16 of 16.

No live Slack workspace behind this. I don't have one where I can add a custom emoji named constructor, so the Slack host above is a local stand-in and the request it recorded is the proof, not a workspace response. The mock-gateway harness goes through qa-channel and never reaches the Slack reaction path.

AI-assisted. Fully tested.

@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added channel: slack Channel integration: slack size: XS triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Sep 2, 2026
@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 5, 2026, 9:38 PM ET / September 6, 2026, 01:38 UTC.

ClawSweeper review

What this changes

The Slack plugin preserves custom emoji names that match JavaScript prototype properties by replacing its glyph lookup object with a Map and adding regression cases.

Merge readiness

✅ Ready for maintainer review

This fix remains necessary on current main and v2026.9.2. No blocking findings remain; the maintainer’s verification and direct SDK inspection resolve the previous dependency blocker.

Priority: P2
Reviewed head: db97c8af12fa93f6f6fd86f6d417cabda5544a59

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A concise shared-owner repair with focused regression cases and convincing before/after transport evidence.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The supplied trace exercises the production add/remove owners through the real Slack client and HTTP transport to a recording server, showing corrected names after the fix and unchanged ordinary/glyph/skin-tone payloads; live workspace acceptance is outside this bounded serialization proof.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The supplied trace exercises the production add/remove owners through the real Slack client and HTTP transport to a recording server, showing corrected names after the fix and unchanged ordinary/glyph/skin-tone payloads; live workspace acceptance is outside this bounded serialization proof.
Evidence reviewed 11 items Verified introduced change: The pinned base-to-head diff changes only the private lookup representation and its reader, preserving all glyph mappings, and adds three cases to the existing reaction test table. No dependency, permission, config, or public API changes are introduced.
Current main still contains the defect: The current-main normalizer indexes an ordinary object with caller-controlled glyphKey. Prototype-property names therefore resolve to inherited values instead of taking the existing string pass-through.
Latest supplied release remains affected: The v2026.9.2 source contains the same ordinary-object lookup and inherited-value failure. The requested repair is not already present in that release.
Findings None None.
Security None None.

How this fits together

Slack reaction actions and acknowledgement or typing reactions share one emoji normalizer. It converts known glyphs into Slack shortcodes before the Slack client sends add or remove requests.

flowchart LR
  A[Message reaction action] --> C[Shared emoji normalization]
  B[Acknowledgement and typing reactions] --> C
  C --> D{Known glyph?}
  D -->|Yes| E[Mapped shortcode and skin tone]
  D -->|No| F[Preserved custom name]
  E --> G[Slack client add or remove request]
  F --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source 0, Tests +4. Total +4 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 34 34 0
Tests 1 4 0 +4
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 38 34 +4

Review metrics

Metric Value Why it matters
Production versus test growth Production net 0 LOC; tests +4 LOC The fix replaces the unsafe representation without growing production code; test growth extends the existing regression table.

Technical review

Best possible solution:

Keep one prototype-safe Map lookup in Slack’s shared normalizer, preserving custom names and existing glyph mappings without new configuration or caller-specific guards.

Do we have a high-confidence way to reproduce the issue?

Yes: current-main source deterministically returns inherited values for prototype-named inputs, and the supplied before/after HTTP trace demonstrates the resulting serialization failure. This reviewer did not execute a current-main reproduction.

Is this the best way to solve the issue?

Yes: replacing the private dictionary with Map fixes both mutations at their shared owner and matches the adjacent skin-tone representation; caller guards would duplicate the repair.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against e10007407d7c.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P2: This repairs malformed Slack reaction requests for a limited set of custom emoji names.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The supplied trace exercises the production add/remove owners through the real Slack client and HTTP transport to a recording server, showing corrected names after the fix and unchanged ordinary/glyph/skin-tone payloads; live workspace acceptance is outside this bounded serialization proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied trace exercises the production add/remove owners through the real Slack client and HTTP transport to a recording server, showing corrected names after the fix and unchanged ordinary/glyph/skin-tone payloads; live workspace acceptance is outside this bounded serialization proof.

Evidence

What I checked:

  • Verified introduced change: The pinned base-to-head diff changes only the private lookup representation and its reader, preserving all glyph mappings, and adds three cases to the existing reaction test table. No dependency, permission, config, or public API changes are introduced. (extensions/slack/src/actions.ts:123, db97c8af12fa)
  • Current main still contains the defect: The current-main normalizer indexes an ordinary object with caller-controlled glyphKey. Prototype-property names therefore resolve to inherited values instead of taking the existing string pass-through. (extensions/slack/src/actions.ts:167, e10007407d7c)
  • Latest supplied release remains affected: The v2026.9.2 source contains the same ordinary-object lookup and inherited-value failure. The requested repair is not already present in that release. (extensions/slack/src/actions.ts:167, 3928bad9badf)
  • Shared owner and callers: Both reaction mutations call normalizeSlackEmojiName. The message-action dispatcher routes add/remove through those functions; acknowledgement, status, and typing callers also reuse them. The adjacent skin-tone lookup already uses Map. This repair belongs at that shared owner rather than in individual callers. (extensions/slack/src/actions.ts:248, db97c8af12fa)
  • Existing documented custom-name contract: Slack emoji discovery documents using each returned identifier directly with react, with optional surrounding colons. No existing configuration bypasses the defective shared lookup. Public docs: docs/channels/slack.md. (docs/channels/slack.md:1306, db97c8af12fa)
  • Focused regression coverage: The three added cases assert outgoing reaction names through the existing client boundary, without exporting the private normalizer or adding test-only production seams. Existing tests retain glyph, skin-tone, idempotency, error propagation, and own-reaction removal coverage. Tests were inspected, not executed during this read-only review. (extensions/slack/src/actions.reactions.test.ts:135, db97c8af12fa)

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Gorkem Erdogan: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-02T21:20:56.716Z sha f0df1df63b0bac0b28bd19dd9ab4ac85fb81adcc :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-03T23:45:10.812Z sha 7ffd16c0b85f8eca436b460a4c241900def9bcde :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-04T00:18:42.551Z sha 97f21361363604ce94bbad13cebbcc891f16d445 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-04T00:53:10.932Z sha c1c1dc5b332d0e9b91429b2a6d18f07266984870 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-04T01:16:52.052Z sha c1c1dc5b332d0e9b91429b2a6d18f07266984870 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-04T02:15:12.794Z sha c1c1dc5b332d0e9b91429b2a6d18f07266984870 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-04T18:37:20.119Z sha c8ce4ad4412d453e9c9c5b5ce33ffed3115612be :: needs maintainer review before merge. :: none
  • reviewed 2026-09-05T02:58:48.986Z sha db97c8a :: blocked before merge. :: none

@teddytennant
teddytennant force-pushed the fix/slack-emoji-prototype-key branch from dfcef5e to f0df1df Compare September 2, 2026 21:13
@teddytennant

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 2, 2026
@teddytennant
teddytennant force-pushed the fix/slack-emoji-prototype-key branch 3 times, most recently from 97f2136 to c1c1dc5 Compare September 4, 2026 00:36
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Sep 4, 2026
@teddytennant
teddytennant force-pushed the fix/slack-emoji-prototype-key branch from c1c1dc5 to c8ce4ad Compare September 4, 2026 18:11
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 4, 2026
normalizeSlackEmojiName indexed the glyph-to-shortcode object literal with the
caller-supplied emoji name, so a custom emoji named `constructor`, `__proto__`
or `toString` resolved to an inherited Object.prototype value. That value is
truthy, so the `shortname ?? withoutColons` pass-through never ran and
reactions.add/remove got a function or Object.prototype as `name` instead of
the string. Reachable from the reaction actions and from an `ackReaction` /
typing-reaction config value, both free-form strings.

The skin-tone sibling in the same file is a Map and never had the problem, so
make this table a Map too. A prototype-named key misses instead of resolving.
@teddytennant
teddytennant force-pushed the fix/slack-emoji-prototype-key branch from c8ce4ad to db97c8a Compare September 5, 2026 02:50
@steipete steipete self-assigned this Sep 5, 2026
@vincentkoc vincentkoc self-assigned this Sep 6, 2026
@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

Maintainer dependency verification completed for the exact head db97c8af12fa93f6f6fd86f6d417cabda5544a59. Direct inspection of pinned @slack/web-api 8.0.0 confirms ReactionName.name is a string, while WebClient.serializeBody JSON-stringifies non-primitives before URL encoding. A trusted package probe serialized the correct string as name=constructor, omitted Object.prototype.constructor because JSON stringification of a function is undefined, and serialized Object.prototype as name=%7B%7D. This resolves the prior dependency-source blocker; no contributor code was executed locally.

@clawsweeper

clawsweeper Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added the rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. label Sep 6, 2026
@clawsweeper clawsweeper Bot removed the rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. label Sep 6, 2026
@vincentkoc
vincentkoc merged commit 0e80d86 into openclaw:main Sep 6, 2026
98 checks passed
@vincentkoc

Copy link
Copy Markdown
Member

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 6, 2026
* commit '047587a542ce205ee78354fbd88ba8ec05c07844': (45 commits)
  chore(ui): refresh control ui locales (#139481)
  fix(slack): keep prototype-named emoji shortcodes intact (#136374)
  fix(gateway): deliver upgrade rejection responses under Bun (#139516)
  refactor(test): simplify catalog guards and fix native report fixture (#139496)
  fix(macos): prevent dashboard fixture loopback timeouts (#139556)
  fix(matrix): preserve selected reply targets inside threads (#139479)
  test(gateway): preserve held-work close failures (#139593)
  refactor(exec): share package argument scanning (#139560)
  fix(audit): preserve sequence range validation before numeric decoding (#139587)
  fix(transcripts): retain capture ownership through failed cleanup (#139572)
  refactor(models): share selector reference traversal (#139571)
  perf(agents): classify allowlists without intermediate sets (#138392)
  chore(release): update appcast for 2026.9.2 (#139575)
  fix(ci): synchronize cloud retries and board widget input (#139506)
  fix(plugins): explain SDK incompatibilities after core updates (#139458)
  fix(voice-call): retain installed WebSocket behavior under Bun (#139567)
  test(text): consolidate literal sanitizer cases (#139579)
  test(gateway): observe native drain without a lint exception (#139576)
  test(memory): consolidate visibility fixtures without policy defaults (#139569)
  fix(ui): show shimmer skeletons while loading Control UI (#139525)
  ...
vincentkoc added a commit that referenced this pull request Sep 6, 2026
* origin/main:
  fix(cli): keep note text with Windows and Unicode line endings (#139512)
  fix(agents): keep isolated completion context on its admitted generation (#139607)
  fix: avoid declaration builds during source-server updates (#139392)
  fix(models): keep discovered models after catalog refresh failures (#139357)
  fix(gateway): record a transcript notice when a run fails before replying (#139439)
  refactor(ios): reuse shared integer conversion (#139581)
  fix(sessions): prevent database lock failures during reclamation (#139469)
  perf(test): reuse transforms within owned scheduler slots (#139553)
  test(agents): share sparse transcript input fixtures (#139589)
  chore(ui): refresh control ui locales (#139481)
  fix(slack): keep prototype-named emoji shortcodes intact (#136374)
  fix(gateway): deliver upgrade rejection responses under Bun (#139516)
  refactor(test): simplify catalog guards and fix native report fixture (#139496)
  fix(macos): prevent dashboard fixture loopback timeouts (#139556)
  fix(matrix): preserve selected reply targets inside threads (#139479)
vincentkoc added a commit that referenced this pull request Sep 6, 2026
* commit 'refs/openclaw/tasks/pr-135167-main': (2467 commits)
  refactor(ios): reuse shared integer conversion (#139581)
  fix(sessions): prevent database lock failures during reclamation (#139469)
  perf(test): reuse transforms within owned scheduler slots (#139553)
  test(agents): share sparse transcript input fixtures (#139589)
  chore(ui): refresh control ui locales (#139481)
  fix(slack): keep prototype-named emoji shortcodes intact (#136374)
  fix(gateway): deliver upgrade rejection responses under Bun (#139516)
  refactor(test): simplify catalog guards and fix native report fixture (#139496)
  fix(macos): prevent dashboard fixture loopback timeouts (#139556)
  fix(matrix): preserve selected reply targets inside threads (#139479)
  test(gateway): preserve held-work close failures (#139593)
  refactor(exec): share package argument scanning (#139560)
  fix(audit): preserve sequence range validation before numeric decoding (#139587)
  fix(transcripts): retain capture ownership through failed cleanup (#139572)
  refactor(models): share selector reference traversal (#139571)
  perf(agents): classify allowlists without intermediate sets (#138392)
  chore(release): update appcast for 2026.9.2 (#139575)
  fix(ci): synchronize cloud retries and board widget input (#139506)
  fix(plugins): explain SDK incompatibilities after core updates (#139458)
  fix(voice-call): retain installed WebSocket behavior under Bun (#139567)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 6, 2026
…6374)

normalizeSlackEmojiName indexed the glyph-to-shortcode object literal with the
caller-supplied emoji name, so a custom emoji named `constructor`, `__proto__`
or `toString` resolved to an inherited Object.prototype value. That value is
truthy, so the `shortname ?? withoutColons` pass-through never ran and
reactions.add/remove got a function or Object.prototype as `name` instead of
the string. Reachable from the reaction actions and from an `ackReaction` /
typing-reaction config value, both free-form strings.

The skin-tone sibling in the same file is a Map and never had the problem, so
make this table a Map too. A prototype-named key misses instead of resolving.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: slack Channel integration: slack P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants