Skip to content

feat(web-api): add agents.sessions.setStatus and agents.sessions.rename - #1942

Draft
zimeg wants to merge 4 commits into
mainfrom
clack/agents-sessions-methods
Draft

feat(web-api): add agents.sessions.setStatus and agents.sessions.rename#1942
zimeg wants to merge 4 commits into
mainfrom
clack/agents-sessions-methods

Conversation

@zimeg

@zimeg zimeg commented Aug 18, 2026

Copy link
Copy Markdown
Member

Adds the agents.sessions.* Web API methods (setStatus, rename) to the sync, async, and legacy web clients — the successors to assistant.threads.setStatus/setTitle for the agent sessions model. Async + legacy generated via scripts/codegen.py.

Experimental; draft while the API is finalized.

@zimeg zimeg self-assigned this Aug 18, 2026
@zimeg zimeg added enhancement M-T: A feature request for new functionality web-client semver:minor labels Aug 18, 2026
@codecov

codecov Bot commented Aug 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.31%. Comparing base (bfb098a) to head (f336c3d).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1942      +/-   ##
==========================================
+ Coverage   84.15%   84.31%   +0.16%     
==========================================
  Files         118      118              
  Lines       13446    13590     +144     
==========================================
+ Hits        11315    11459     +144     
  Misses       2131     2131              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

Add the codeChannels.* Web API method family to the sync, async, and legacy web
clients: create, archive, rename, setProperties, setCommands, setView,
listViews, removeView, getCanvas, and setCanvasContent. These let an app manage
a code channel — its lifecycle, context bar, per-channel slash commands, view
tabs (diff/html/block_kit/canvas), and canvas content. All require the
code_channels:manage bot scope. Generated the async and legacy clients via
scripts/codegen.py.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
zimeg and others added 3 commits August 18, 2026 15:27
Align the codeChannels.* signatures with the API reference:
- create: add team_id, is_private; make origin_channel_id/origin_message_ts
  optional (name-only creation is valid; the origin pair is optional)
- setView: make type optional (defaults to html); add view_key, blocks,
  canvas_id, access_level, name, label, csp
- removeView: make view_id optional; add view_key (provide exactly one)
- getCanvas: add required canvas_id; add content_format, include_resolved
- setCanvasContent: add required canvas_id
- setProperties: add agent_resource

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Order the codeChannels.* methods alphabetically for consistency; no
signature or behavior changes.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Add the agents.sessions.* Web API methods to the sync, async, and legacy web
clients. These are the successors to assistant.threads.setStatus/setTitle for
the agent sessions model: setStatus manages a session's lifecycle state
(active/processing/suspended/closed, creating the session if needed) and works
in channels and DMs; rename updates a session's title. thread_ts is optional
(omit for channel-scoped sessions). Generated the async and legacy clients via
scripts/codegen.py.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg
zimeg force-pushed the clack/agents-sessions-methods branch from b6d4508 to f336c3d Compare August 18, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement M-T: A feature request for new functionality semver:minor web-client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant