GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — feat(tool): allow human-readable slugs as task_id by rafaelchavesfreitas · Pull Request #32122 · anomalyco/opencode ConversationIssue for this PRCloses #32118 Type of change
What does this PR do?The Task tool's The problem: Task tool outputs IDs like How it works: When The slug is scoped to the root session (the top-level session without a parent). A new Changes:
How did you verify your code works?
Screenshots / recordingsN/A — no UI changes. Checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsThe task tool now accepts human-readable slugs (e.g. "explore-auth") as task_id, making it easy for LLMs to create and resume named task sessions without carrying opaque ses_ IDs across turns. If the slug hasn't been used in the current root session, a new session is created with a derived ID (ses_<hash>_<slug>). If it already exists, the session is resumed with full context. Closes anomalyco#32118
This was referenced
3 tasks done
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
randomvariable
added a commit
to randomvariable/opencode
that referenced
this pull request
Accept a human-readable slug as the task tool's task_id: it is resolved to a
deterministic session ID derived from the root session, so passing the same
slug resumes the named task and a new slug creates one. Full "ses_..." IDs
still resume directly. Adds Session.create({ id }) and Session.root().
Ported from anomalyco#32122 (adapted for the Effect layer).
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
randomvariable
added a commit
to randomvariable/opencode
that referenced
this pull request
Add an experimental `mcp_lazy` config flag. When enabled, MCP tools are no longer loaded into the model context automatically; instead a new mcp_search tool (list/search/describe/call) discovers and invokes MCP tools on demand, and the prompt loop advertises connected MCP servers in the system prompt. mcp_search is only registered when the flag is set and MCP is available. Ported from anomalyco#12520 (adapted for the Effect layer: the server advert is built inline in the prompt loop rather than via a SystemPrompt service method, and Config is provided at the SessionTools.resolve call site). The TUI "Lazy" status badge from the original PR is omitted (its dialog moved packages and the badge is cosmetic). SDK regeneration also includes the session-create `id` field from anomalyco#32122. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
randomvariable
added a commit
to randomvariable/opencode
that referenced
this pull request
Add an experimental subagent-interrupt capability (behind OPENCODE_EXPERIMENTAL_SUBAGENT_INTERRUPT): an Interrupt service with pending/terminal state, task_steer/task_cancel/task_abort tools (gated by a new `interrupt` permission), a POST /session/:id/interrupt endpoint, and a turn-boundary consume in the prompt loop that injects an escaped steer/cancel frame plus a visible transcript marker. Cancel records a terminal reason and force-breaks after a grace window; abort writes a marker, records the terminal, and cancels the BackgroundJob immediately. The TUI gains an esc-with-reason flow, footer button, and distinct interrupt markers. Ported from anomalyco#32425 (adapted for the Effect layer; merged with the prior task.ts/registry.ts/prompt.ts changes from anomalyco#29447/anomalyco#32122/anomalyco#12520/anomalyco#32192/anomalyco#19961). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
randomvariable
added a commit
to randomvariable/opencode
that referenced
this pull request
The task tool's task_id description changed in the slug-resume port (anomalyco#32122); update the JSON Schema wire-shape snapshot to match. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabelsProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. [FEATURE]: Allow human-readable slugs as task_id in the Task toolUh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |