Skip to content

fix(slack): keep a picture sent in a linked thread for the dashboard turn - #38076

Merged
bolichen97 merged 1 commit into
kirodotdev:mainfrom
atkinh-amzn:fix/slack-linked-thread-attachments
Nov 17, 2026
Merged

bolichen97 merged 1 commit into
kirodotdev:mainfrom
atkinh-amzn:fix/slack-linked-thread-attachments

Conversation

@atkinh-amzn

Copy link
Copy Markdown
Contributor

Problem / Motivation

Goal: Bug Fix: Currently you can't end an image through Slack, when you try it fails to reach the backend and you have to switch over to the dashboard and upload there; this is annoying and breaks what should be a a reasonable and common workflow.

A Slack picture is downloaded to a temp file, and the Slack handler deletes it when its task ends. A reply in a thread linked to a dashboard chat is handed to that chat's turn, which starts in the background (or waits in the slot's queue) after the handler task has already ended. So the turn found no file: the agent got a dead /tmp/tmpXXXX.png path instead of the picture, and the dashboard row showed the same dead path.

Why it matters

Anyone who links a Slack thread to a dashboard chat and sends a picture there gets an answer about a file the agent never saw. Linking a thread is the way to keep talking to a dashboard chat from a phone, so a photo taken on the phone is exactly the case that breaks.

Not a goal

What changed (motivation → approach → change)

The turn read a file its own handler task had deleted. The per-session attachments store already keeps a channel's downloaded pictures for an appended row (#31807), but a linked-thread message is not appended by the Slack path: the dashboard slot saves its own window. So the router now stores the pictures itself, before it hands the message over, and the turn and the row both name the stored copy.

Piece Change
slack/linked_thread_images.py (new) Holds the files the current message downloaded. store_for_slot copies each picture into the linked session's attachments and rewrites its line to ![image](<copy>). The files are taken once per message.
slack/handler_runtime/inbound.py route_linked_thread calls it before redaction and the hand-off.
slack/events.py, slack/events_queue.py Record the message's files after the code-channel dispatch; the queue drain records each entry's own files.
ConversationLog.store_ingested_images (history_append.py, history.py) The existing ingested-image copy and rewrite, under the session lock, without an append.
slack/handler.py Imports the new name, which the owners read from the facade.
Docs history.md and slack-gateway.md describe the linked-thread store.

Files that are not pictures, and a picture the store refuses (too large, or the session cap reached), keep their lines exactly as today. This follows the maintainer decision docs/decisions/2026-11-06-a-channel-picture-is-kept-with-its-session.md: the copy lives and is deleted with the session's transcript, Incognito and Temporary included.

The files travel in a context variable, not a parameter. The router is reached from the native handler, the transport dispatcher and the queue drain, and none of them carries the download list; each turn task inherits the value from the task that created it.

Backwards compatibility

Compatible: store_ingested_images is a new member; route_linked_thread changes the text only when the message carried downloaded pictures, and changes it to ![image](...) markup the dashboard already renders.

Removes nothing: no key, function or record is removed; a picture's line changes from a deleted temp path to its stored copy.

Tests

  • test/test_slack_linked_thread_images.py drives handle_message into a real ConversationLog, deletes the temp file the way the handler's cleanup does, then checks what the turn reads:
    • test_the_turn_reads_a_stored_copy_after_the_cleanup: one stored copy, the turn's text names it, the prompt carries one image block, and the dashboard row names the same copy.
    • test_without_the_store_the_picture_is_lost: the defect, the turn gets no image block.
    • test_a_queued_message_names_the_stored_copy: a busy slot queues text that names the copy.
    • test_a_file_that_is_not_a_picture_keeps_its_line, test_the_recorded_files_are_taken_once, test_no_conversation_log_leaves_the_text.
    • test_a_queued_entry_routes_with_its_own_files: the queue drain routes with the entry's own files, never the files of the message that queued it.
    • test_the_event_path_records_the_message_files: _route_message downloads one picture and its turn task sees that path.
  • test/test_history_bindings.py adds store_ingested_images to the frozen member inventory.

Proof: not provable -- other: prove.py reverts the new module with the rest, so the test file fails at collection; reverting one line at a time by hand instead, removing the router's store_linked_thread_images call fails test_the_turn_reads_a_stored_copy_after_the_cleanup and test_a_queued_message_names_the_stored_copy, removing the queue drain's set_linked_thread_files fails test_a_queued_entry_routes_with_its_own_files, and removing the event path's set_linked_thread_files fails test_the_event_path_records_the_message_files

Determinism: 20 of 20 runs at -n0; 10 of 10 at -n 4 --dist loadgroup --max-worker-restart=2 beside test/test_handler_link_intercept.py and test/test_slack_handler_composition_contract.py; 5 of 5 seeded shuffled orders of the new file's 8 tests.

Manual verification

Ran this build locally and confirmed that images successfully sent both as part of the initial message and as a reply in the thread (both one image and multiple in a post).

Screenshots / video

N/A — the diff touches no frontend file; the dashboard already draws a user row's ![image](...) markup.

Related Issues

Part of #10871

Sibling sweep

Swept: git grep -nE "route_linked_thread(|maybe_route_linked_thread(" -- src/kiro_crew
Sibling: src/kiro_crew/slack/handler_runtime/inbound.py -- changed here
Sibling: src/kiro_crew/slack/handler_runtime/dispatch.py -- not affected -- routes through inbound.py, which now stores the pictures
Sibling: src/kiro_crew/slack/transport_dispatch.py -- not affected -- routes through inbound.py, which now stores the pictures
Sibling: src/kiro_crew/slack/code_channels/routing.py -- not affected -- code channels hand their own files to the bound session

Pattern harvest

Not generalizable: the defect is one hand-off that outlives the task owning its temp files; each channel cleans up in its own order, so no scanner can tell a safe hand-off from this one.

Checklist

  • At most two commits (one is the norm), with a Conventional Commits title (feat|fix|docs|style|refactor|perf|test|chore|ci|build|revert: ...)
  • Existing tests pass and new tests added for new functionality
  • Self-review completed; code follows project style guidelines
  • Documentation updated (if applicable)
  • No secrets, credentials, or internal references in the diff

Contribution License Agreement

Contributions are accepted under the project's Apache-2.0 license; see the Licensing section of CONTRIBUTING.md.

@atkinh-amzn
atkinh-amzn requested review from a team and KiroCrewCaptain as code owners November 16, 2026 19:55
@github-actions github-actions Bot added fork Pull request from a fork (external contributor) readiness: action required A blocking check or review needs attention readiness: checking Automated validation is still running and removed readiness: action required A blocking check or review needs attention labels Nov 16, 2026
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

UX Review (Opus 5.5, fork) — ⏭️ skipped

Revision f8ad20c59b3c2660ca9153d982d8aee9749a292e touches no user-facing surface (no changes under website/ or committed screenshots), so the UX review was skipped. Does not block merge.

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

First Principles Review (Opus 5.5, fork) — ✅ PASS

Premise-level review of f8ad20c59b3c2660ca9153d982d8aee9749a292e via the fork AI-review pipeline — why this exists and whether the shipped surface is the smallest honest version. Updated in place on each push. A BLOCK verdict blocks PR readiness; PASS does not.

First-Principles-Verdict: PASS

The fix copies each picture into the session's existing attachments store, which the recorded 2026-11-06 picture decision requires. The only surplus is a one-caller refuse hook.

Notes

  • Item 6 — one consumer, generalized: refuse: Callable[[], bool] | None = None on the new public store_ingested_images has exactly 1 caller (grepped store_ingested_images( in src/: only linked_thread_images.py, which always passes it). Subtraction: make the deleted-session check a required argument, or move session_was_deleted to the caller, and drop the optional callable.

What this change ships

Inventory (6 items) — 5 justified

Intent: a picture sent in a Slack thread linked to a dashboard chat should reach that chat's agent. FIX.

  1. The linked chat's turn now gets the picture, not a deleted /tmp path — justified
  2. The dashboard row for that message shows the stored picture — justified
  3. The picture is kept in the session's attachments and deleted with the session — justified
  4. A queued Slack message routes with its own files, not another message's — justified
  5. A slot closed or relinked during the copy is resolved again, so the turn runs on the current slot — undeclared
  6. New public ConversationLog.store_ingested_images with an optional refuse hook — one consumer, generalized

[FIRST-PRINCIPLES-REVIEWED] f8ad20c

Description read

[DESCRIPTION-READ] 7e7d415fa5e15ab41cfb5fea0fc1a9eef26a36ce8d0b9c68cb00f8e7eb0fa0f8

That sha256 names the PR description this verdict read. Recompute it with .github/scripts/pr-description-capture.sh; if it differs, the description changed after this verdict was formed and any finding drawn from the description is unproven.

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Design Review (Opus 5.5, fork) — ✅ PASS

Design-level review of f8ad20c59b3c2660ca9153d982d8aee9749a292e via the fork AI-review pipeline — updated in place on each push. A BLOCK verdict blocks PR readiness; PASS does not.

Design-Verdict: PASS

No design-level concerns. Storing the picture in the session before the hand-off fixes the root cause: the turn and the dashboard row both outlived the temp file. It also follows the recorded picture-kept-with-session decision and removes nothing.

Notes

  • The context variable carries the files implicitly, so a future fourth entry to route_linked_thread that forgets set_inbound_files silently brings back the dead-path bug. A pin like test_the_event_path_records_the_message_files for each entry point is what holds this in place.

[DESIGN-REVIEWED] f8ad20c

Description read

[DESCRIPTION-READ] 6b162a7aa1dc7df4e9aabbdc44b73fcbb1c4b18c61276cd32ad010249f5156db

That sha256 names everything this verdict read: the PR description, plus the 1 evidence file(s) the workflow collected from it and handed this review. It covers that evidence because the media strip replaces every attachment URL with the same placeholder, so an edit swapping one attachment for another would leave the description's captured text identical while what this review judged changed. Recompute it with .github/scripts/pr-description-capture.sh over the same inputs; if it differs, the description or that evidence changed after this verdict was formed and any finding drawn from either is unproven.

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Opus 5.5 Review (fork) — ✅ no blocking findings

Reviewed f8ad20c59b3c2660ca9153d982d8aee9749a292e via the fork AI-review pipeline; updated in place on each push.

Review details

No findings.

[OPUS-REVIEWED] f8ad20c

bolichen97
bolichen97 previously approved these changes Nov 16, 2026

@bolichen97 bolichen97 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to Kiro Crew, @atkinh-amzn, and thanks for a clear first PR. The description explains the bug and the fix well.

Verdict: approve.

What I checked on f62272710c:

  • Root cause. The linked-thread turn runs after the Slack handler task has unlinked its temp files (slack/events.py cleanup). Storing the pictures in route_linked_thread before the hand-off fixes that cause, not the symptom.
  • Order in the router. store_linked_thread_images (slack/handler_runtime/inbound.py:908) runs after the channel_agent_mismatch refusal and after the pinned re-entry. So a refused reply stores nothing, and a re-routed reply cannot store twice.
  • Queued entries. The enqueue path hands cleanup of image_temp_paths to _dispatch_queued, which unlinks only after the dispatch. So the drain's set_linked_thread_files(kwargs["image_temp_paths"]) still sees live files, and each entry routes with its own files.
  • The context variable. It is set once per message in _route_message (events.py:1518) and taken once in store_for_slot. A child task gets a copy, so a value cannot leak back into the parent or into another Slack event's task.
  • Storage. store_ingested_images reuses _store_ingested_images under _locked(key), the same lock delete_session takes. So the per-message ImageBudget, the session cap and deletion with the transcript all apply, as the 2026-11-06 decision says. Non-picture files and refused pictures keep their lines.
  • Failure path. store_for_slot logs and returns the text unchanged. That is the same outcome as before the fix, never a lost message.
  • Docs. history.md and slack-gateway.md match the code.

Local run on the PR head: test/test_slack_linked_thread_images.py, test/test_history_bindings.py, test/test_handler_link_intercept.py and test/test_slack_handler_composition_contract.py gave 355 passed. flake8 is clean on the 7 changed source files. mypy is clean on the 3 core ones.

Not blocking: the **Goal:** line says "you can't end an image". It probably means "send". The goal is frozen, so leave it unless you want to fix the typo yourself.

I'm turning on auto merge, so it lands once the required checks are green.

AI-assisted, sent by Bolin Review bot

@bolichen97
bolichen97 enabled auto-merge (squash) November 16, 2026 20:21
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

GPT 6.1 Review (fork) — ✅ no blocking findings

Reviewed f8ad20c59b3c2660ca9153d982d8aee9749a292e via the fork AI-review pipeline; updated in place on each push.

Review details

No findings.
[GPT-REVIEWED] f8ad20c

auto-merge was automatically disabled November 16, 2026 21:15

Head branch was pushed to by a user without write access

@atkinh-amzn
atkinh-amzn force-pushed the fix/slack-linked-thread-attachments branch from f622727 to f6db648 Compare November 16, 2026 21:15
@github-actions github-actions Bot added readiness: action required A blocking check or review needs attention and removed readiness: checking Automated validation is still running labels Nov 16, 2026
bolichen97
bolichen97 previously approved these changes Nov 16, 2026

@bolichen97 bolichen97 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approving f6db648. The new part closes the race in the copy step well: the copy runs off the loop, so route_linked_thread now passes a still_current check that is read back on the loop. If the slot was closed, deleted or relinked meanwhile, store_for_slot removes the copies it just made, records the files again and returns None; a pinned route then reads as unrouted, and an unpinned one is resolved once more and pinned, which bounds it to one extra pass. ConversationLog.store_ingested_images keeps the copy under the session lock without an append, matching the spec note.

Locally on the head: the changed test files, 235 passed, including the new TestSlotChangedDuringCopy cases. Auto merge is on.

AI-assisted, sent by Bolin Review bot

@bolichen97
bolichen97 enabled auto-merge (squash) November 16, 2026 22:05
@github-actions github-actions Bot added readiness: checking Automated validation is still running readiness: action required A blocking check or review needs attention and removed readiness: action required A blocking check or review needs attention readiness: checking Automated validation is still running labels Nov 16, 2026
auto-merge was automatically disabled November 17, 2026 00:03

Head branch was pushed to by a user without write access

@atkinh-amzn
atkinh-amzn force-pushed the fix/slack-linked-thread-attachments branch from d1e9db2 to c76fcc6 Compare November 17, 2026 00:03
bolichen97
bolichen97 previously approved these changes Nov 17, 2026

@bolichen97 bolichen97 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approving c76fcc6. The range-diff against the head I approved (f6db648) only drops the cleanup of copies after a relink, and adds a test for it. That is right: stored names come from the file content, so the old session's copy can be the same file a committed row already names, and deleting it would break that row. The session's own deletion reclaims it. The docstrings match. test/test_slack_linked_thread_images.py and test/test_history_bindings.py pass locally on this head (236 passed).

AI-assisted, sent by Bolin Review bot

@bolichen97
bolichen97 enabled auto-merge (squash) November 17, 2026 00:07
@bolichen97

Copy link
Copy Markdown
Contributor

@atkinh-amzn a correction to what I said in Slack: GPT 6.1's new finding on c76fcc6eb6 is real, and the adjudicator upheld it, so this PR is held until it is fixed. My approval stays; auto merge is on.

Dropping the rollback fixed the earlier problem (deleting a file another row names), but it opens this one: if the session is permanently deleted while store_for_slot waits for the worker thread, store_ingested_images takes the lock after delete_session has already reclaimed the attachments directory. store_image_file then creates the directory again and leaves the picture on disk with no transcript. The later still_current() check stops the turn, but the file stays.

Fix: decide under the session lock, before the copy. In store_ingested_images, inside with self._locked(key):, check that the session has not been deleted (the slot's own deletion witness, as GPT suggests; a bare "transcript file exists" check would also skip a new slot that has not saved yet) and return content unchanged when it has. A test that deletes the session from the patched store_ingested_images (like your relink tests do) and asserts no attachments directory is left would pin it.

Two other reds are not from this PR, and I re-ran both:

  • Dependency License Gate hit a GitHub API rate limit.
  • PR Hygiene counted 11 commits, but the PR has 1 now.

AI-assisted, sent by Bolin Review bot

…turn

A reply in a Slack thread linked to a dashboard chat runs as that chat's
turn, after the Slack handler task has deleted the message's downloaded
files, so the agent and the dashboard row got a dead temp path.

route_linked_thread now stores each picture in the linked session's
attachments (ConversationLog.store_ingested_images) before the hand-off,
and the turn and the row name the stored copy. The event path records the
files after the code-channel dispatch; the queue drain records each
entry's own files.

Part of kirodotdev#10871
auto-merge was automatically disabled November 17, 2026 01:15

Head branch was pushed to by a user without write access

@atkinh-amzn
atkinh-amzn force-pushed the fix/slack-linked-thread-attachments branch from c76fcc6 to f8ad20c Compare November 17, 2026 01:15

@bolichen97 bolichen97 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approving f8ad20c59b. GPT's deleted-session finding is fixed the way I suggested: store_ingested_images now decides under the session lock, the same lock delete_session reclaims attachments under. It stores nothing when a delete is in flight or when refuse (the slot's own session_was_deleted witness) says the session is gone. test_a_session_deleted_before_the_copy_gets_no_attachments_back and test_a_delete_in_flight_stores_nothing pin both paths, and the fingerprint row is updated. The range-diff against c76fcc6eb6 shows nothing else changed. The linked-thread and history tests pass locally on this head (238 passed). I approved the held CI runs on this head.

AI-assisted, sent by Bolin Review bot

@bolichen97
bolichen97 enabled auto-merge (squash) November 17, 2026 01:37
@bolichen97

Copy link
Copy Markdown
Contributor

Closing and reopening to refresh CI: PR Hygiene counted 7 commits against the stale base in the old push event (the PR has 1 commit), and Fast Gate was cancelled. AI-assisted, sent by Bolin Review bot

@bolichen97 bolichen97 closed this Nov 17, 2026
auto-merge was automatically disabled November 17, 2026 02:07

Pull request was closed

@bolichen97 bolichen97 reopened this Nov 17, 2026
@bolichen97
bolichen97 enabled auto-merge (squash) November 17, 2026 02:09
@github-actions github-actions Bot added readiness: checking Automated validation is still running readiness: passed Eligible automated validation passed for the current revision and removed readiness: action required A blocking check or review needs attention readiness: checking Automated validation is still running labels Nov 17, 2026
@bolichen97
bolichen97 merged commit 9945f61 into kirodotdev:main Nov 17, 2026
175 of 236 checks passed
@github-actions github-actions Bot removed the readiness: passed Eligible automated validation passed for the current revision label Nov 17, 2026
buluoray pushed a commit that referenced this pull request Nov 19, 2026
…turn (#38076)

A reply in a Slack thread linked to a dashboard chat runs as that chat's
turn, after the Slack handler task has deleted the message's downloaded
files, so the agent and the dashboard row got a dead temp path.

route_linked_thread now stores each picture in the linked session's
attachments (ConversationLog.store_ingested_images) before the hand-off,
and the turn and the row name the stored copy. The event path records the
files after the code-channel dispatch; the queue drain records each
entry's own files.

Part of #10871

Co-authored-by: atkinh-amzn <356308962+atkinh-amzn@users.noreply.github.com>
(cherry picked from commit 9945f61)
buluoray pushed a commit that referenced this pull request Nov 19, 2026
…turn (#38076)

A reply in a Slack thread linked to a dashboard chat runs as that chat's
turn, after the Slack handler task has deleted the message's downloaded
files, so the agent and the dashboard row got a dead temp path.

route_linked_thread now stores each picture in the linked session's
attachments (ConversationLog.store_ingested_images) before the hand-off,
and the turn and the row name the stored copy. The event path records the
files after the code-channel dispatch; the queue drain records each
entry's own files.

Part of #10871

Co-authored-by: atkinh-amzn <356308962+atkinh-amzn@users.noreply.github.com>
(cherry picked from commit 9945f61)
buluoray pushed a commit that referenced this pull request Nov 19, 2026
…turn (#38076)

A reply in a Slack thread linked to a dashboard chat runs as that chat's
turn, after the Slack handler task has deleted the message's downloaded
files, so the agent and the dashboard row got a dead temp path.

route_linked_thread now stores each picture in the linked session's
attachments (ConversationLog.store_ingested_images) before the hand-off,
and the turn and the row name the stored copy. The event path records the
files after the code-channel dispatch; the queue drain records each
entry's own files.

Part of #10871

Co-authored-by: atkinh-amzn <356308962+atkinh-amzn@users.noreply.github.com>
(cherry picked from commit 9945f61)
buluoray pushed a commit that referenced this pull request Nov 19, 2026
…turn (#38076)

A reply in a Slack thread linked to a dashboard chat runs as that chat's
turn, after the Slack handler task has deleted the message's downloaded
files, so the agent and the dashboard row got a dead temp path.

route_linked_thread now stores each picture in the linked session's
attachments (ConversationLog.store_ingested_images) before the hand-off,
and the turn and the row name the stored copy. The event path records the
files after the code-channel dispatch; the queue drain records each
entry's own files.

Part of #10871

Co-authored-by: atkinh-amzn <356308962+atkinh-amzn@users.noreply.github.com>
(cherry picked from commit 9945f61)
bolichen97 added a commit that referenced this pull request Nov 19, 2026
… main (#39387)

Backports to release/0.13.0 the fixes from #39342, squashed into one
commit and brought up to date with release/0.13.0 after the Kiro Memory
preview backport (#39360). Picks, in order; each [pick sha] is the
commit on the #39342 branch, whose body has main's cherry-picked-from line:

- fix(monitor): wake the session once when its watched PR merges or closes (#37776) [pick 84da419]
- fix(security): match deny rules against Windows program suffixes and cmd/PowerShell in-word escapes (#33569) [pick e4941b7]
- fix(mimocode): refuse a chat that would answer from Xiaomi's hosted model unsigned (#37629) [pick 1bfdce3]
- fix(acp): end a quiet agent-started cycle on the shared runtime's stale gate (#37932) [pick fa870a2]
- fix(conductor): re-read goal-conductor after a compaction (#37917) [pick ccdd67c]
- fix(security): refuse a command nested past 32 substitutions before the floors walk it (#37875) [pick 2f9bd67]
- fix(mates): carry a moved Bot's shell toolsSettings entry as execute_bash instead of holding it (#37973) [pick 16022f4]
- fix: hold an app to its own sessions, jobs and runs (#37804) [pick 3dff0c0]
- fix(acp): keep a KAS chat's stored record when its resume fails after the load (#37955) [pick 6ceb7b5]
- fix(gateway): ignore a repeat SIGTERM during graceful shutdown (#38031) [pick b48287d]
- fix(security): keep a quote in a $( ) from hiding a later ssh (#37558) [pick b9fed61]
- fix(agent): rebuild takes a server's disabledTools from the kiro global (#38147) [pick c50bbcc]
- fix(mcp_gateway): keep the backend when a stub leaves an open listen (#38121) [pick 3e9c7f9]
- fix: refresh plan and model list after a kiro-cli sign-in to another account (#38053) [pick 5ad3d36]
- fix(slack): keep a picture sent in a linked thread for the dashboard turn (#38076) [pick 7f8903e]
- fix: keep a resolved tool policy when the gateway is too slow to answer (#36669) [pick 9be5691]
- fix: open owner-only files and prune overlay folders without following links (#36994) [pick 6a1acc9]
- fix: refuse the local token mint to app backends (#38113) [pick d166dab]
- fix(subagent): hold a spawn's first prompt for its MCP servers (#38127) [pick e3e0298]
- fix(security): refuse a headless git --output write with no approver (#36326) [pick 1abee40]
- fix(restore): require an explicit mode, never default to replace (#38094) [pick ca86c06]
- fix: make the deny gate's shell walk linear in command length (#36437) [pick 22c100b]
- fix(chat): let a cancelled background start finish its session teardown (#36664) [pick b1dd34f]
- fix(acp): refuse a start when two differing specs declare the agent's name (#38411) [pick 80ccfff]
- fix: probe a silent turn while its co-tenant keeps the process busy (#38662) [pick 6354490]
- fix(kas): let a reopened chat switch to models its load select omits (#38376) [pick 1640822]
- fix(cloud): install a patched node 22 on run on aws instances (#38732) [pick 059cb90]
- fix: write member record files without following links (#37303) [pick aac9642]
- fix: fail a kas start fast once the host has turned its mcp off (#38677) [pick e147238]
- fix(decisions): fall back to HTTP/1.1 when h2 is missing (#38759) [pick fc16482]
- fix(mcp_gateway): free a spawn permit when its backend exits before initialize (#38793) [pick a084ba2]
- fix(kas): start an app chat whose tool policy hides every kirocrew-cron tool (#38761) [pick ccea5a9]
- fix(acp): give the tool-stall watchdog a margin over native waits (#34117) [pick b5d9e89]
- fix(mcp): bind the working-folder answer to its launch; observe launch changes behind name grants (#38983) [pick a1069be]
- fix(mcp): hide the gateway secret files from the npm install and third-party probe spawns (#39000) [pick 14d8571]
- fix(sandbox): fold env name case on Windows in the agent env scrub (#33997) [pick 9bdce76]
- fix(apps): let app turns follow the Auto approval mode (#38830) [pick e8336df]
- fix: end a dashboard turn stopped while it is still being prepared (#36478) [pick 37fff93]
- fix(acp): cleanup_session deletes the record on the session's own host (#39046) [pick 31b5ec4]
- fix(acp): scan only the new part of a streamed tool result (#38852) [pick e2870db]
- fix(sandbox): make an unscoped session host the OOM victim, not the gateway (#39189) [pick 2be6dde]
- fix(security): read aws s3 downloads piped into tail, with 2>&1, or with an AWS_PROFILE prefix (#38271) [pick bf65d97]
- fix: redact four display and log paths and use a fixed 502 message for session switch refusals (#38982) [pick 55d9ec7]
- fix(sandbox): pin a credential-masking app's folder after the masks on the namespace backend (#34339) [pick afd2b14]
- fix(acp): wait for systemd scope admission as its own startup stage (#37008) [pick 3e29c86]
- fix(acp): wait for systemd scope admission on the AcpClient spawn path (#38303) [pick 85f0a25]
- fix(acp): stamp the spawn instance on the AcpClient child (#38810) [pick f36eb5a]
- fix: end the turn when the agent never confirms a stop (#38512) [pick 2665c9d]
- fix(kas): renew a refused crew sign-in instead of failing every start (#38978) [pick 2f48cac]
- fix(security): keep self-host detection when the ssh verb is a glob (#34056) [pick ab53f10]
- fix(security): judge each substitution body for ssh-to-self (#37616) [pick d5b7ac3]
- test: check the ssh floor's nesting bound below the gate's depth cap (#37964) [pick 6c9ae1d]
- fix(mate): apply held Bot limits on shared claude sessions and refuse unnarrowed KAS children (#39212) [pick 721bbbe]
- test(integration): wait out and reset the hidden-chat refresh between boots (#37933) [pick e77586d]
- fix(browser): fall back to Kiro's Chromium under Automatic when Chrome's remote debugging is off (#39265) [pick 31912eb]

Left out of #39342's set (not needed for 0.13.0): the provider_labels
refactor, #34045, #36668, #39120 and #37627.

Merge with release/0.13.0: kept both imports in runtime_session_load,
runtime_spawn_launch and session_provider; session_allocation lists the
memory_policy owner; the keep-record resume path passes kas_memory_mode
as main does; dropped the ACP_BACKENDS_SESSION_EVICTION import that
moved to session_provider_new_conversation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fork Pull request from a fork (external contributor)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants