Compare commits

..

1 Commits

Author SHA1 Message Date
Aiden Cline
d2311bbf81 core: ephemerally wrap queued user messages with reminder to stay on track 2026-01-02 22:40:05 -06:00
19 changed files with 20 additions and 19 deletions

View File

@@ -3,7 +3,6 @@
"module": "index.ts",
"type": "module",
"private": true,
"license": "MIT",
"devDependencies": {
"@types/bun": "catalog:"
},

View File

@@ -2,7 +2,6 @@
"name": "@opencode-ai/console-app",
"version": "1.0.224",
"type": "module",
"license": "MIT",
"scripts": {
"typecheck": "tsgo --noEmit",
"dev": "vite dev --host 0.0.0.0",

View File

@@ -4,7 +4,6 @@
"version": "1.0.224",
"private": true,
"type": "module",
"license": "MIT",
"dependencies": {
"@aws-sdk/client-sts": "3.782.0",
"@jsx-email/render": "1.1.1",

View File

@@ -4,7 +4,6 @@
"$schema": "https://json.schemastore.org/package.json",
"private": true,
"type": "module",
"license": "MIT",
"scripts": {
"typecheck": "tsgo --noEmit"
},

View File

@@ -17,6 +17,5 @@
"scripts": {
"dev": "email preview emails/templates"
},
"type": "module",
"license": "MIT"
"type": "module"
}

View File

@@ -1,7 +1,6 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/console-resource",
"license": "MIT",
"dependencies": {
"@cloudflare/workers-types": "catalog:"
},

View File

@@ -3,7 +3,6 @@
"private": true,
"version": "1.0.224",
"type": "module",
"license": "MIT",
"scripts": {
"typecheck": "tsgo -b",
"predev": "bun ./scripts/predev.ts",

View File

@@ -3,7 +3,6 @@
"version": "1.0.224",
"private": true,
"type": "module",
"license": "MIT",
"scripts": {
"typecheck": "tsgo --noEmit",
"dev": "vite dev",

View File

@@ -4,7 +4,6 @@
"$schema": "https://json.schemastore.org/package.json",
"private": true,
"type": "module",
"license": "MIT",
"devDependencies": {
"@cloudflare/workers-types": "catalog:",
"@tsconfig/node22": "22.0.2",

View File

@@ -3,7 +3,6 @@
"version": "1.0.224",
"name": "opencode",
"type": "module",
"license": "MIT",
"private": true,
"scripts": {
"typecheck": "tsgo --noEmit",

View File

@@ -560,6 +560,25 @@ export namespace SessionPrompt {
const sessionMessages = clone(msgs)
// Ephemerally wrap queued user messages with a reminder to stay on track
if (step > 1 && lastFinished) {
for (const msg of sessionMessages) {
if (msg.info.role !== "user" || msg.info.id <= lastFinished.id) continue
for (const part of msg.parts) {
if (part.type !== "text" || part.ignored || part.synthetic) continue
if (!part.text.trim()) continue
part.text = [
"<system-reminder>",
"The user sent the following message:",
part.text,
"",
"Please address this message and continue with your tasks.",
"</system-reminder>",
].join("\n")
}
}
}
await Plugin.trigger("experimental.chat.messages.transform", {}, { messages: sessionMessages })
const result = await processor.process({

View File

@@ -3,7 +3,6 @@
"name": "@opencode-ai/plugin",
"version": "1.0.224",
"type": "module",
"license": "MIT",
"scripts": {
"typecheck": "tsgo --noEmit",
"build": "tsc"

View File

@@ -1,7 +1,6 @@
{
"$schema": "https://json.schemastore.org/package",
"name": "@opencode-ai/script",
"license": "MIT",
"devDependencies": {
"@types/bun": "catalog:"
},

View File

@@ -3,7 +3,6 @@
"name": "@opencode-ai/sdk",
"version": "1.0.224",
"type": "module",
"license": "MIT",
"scripts": {
"typecheck": "tsgo --noEmit",
"build": "./script/build.ts"

View File

@@ -2,7 +2,6 @@
"name": "@opencode-ai/slack",
"version": "1.0.224",
"type": "module",
"license": "MIT",
"scripts": {
"dev": "bun run src/index.ts",
"typecheck": "tsgo --noEmit"

View File

@@ -2,7 +2,6 @@
"name": "@opencode-ai/ui",
"version": "1.0.224",
"type": "module",
"license": "MIT",
"exports": {
"./*": "./src/components/*.tsx",
"./pierre": "./src/pierre/index.ts",

View File

@@ -3,7 +3,6 @@
"version": "1.0.224",
"private": true,
"type": "module",
"license": "MIT",
"exports": {
"./*": "./src/*.ts"
},

View File

@@ -1,7 +1,6 @@
{
"name": "@opencode-ai/web",
"type": "module",
"license": "MIT",
"version": "1.0.224",
"scripts": {
"dev": "astro dev",

View File

@@ -38,7 +38,6 @@ You can also check out [awesome-opencode](https://github.com/awesome-opencode/aw
| [opencode-skillful](https://github.com/zenobi-us/opencode-skillful) | Allow OpenCode agents to lazy load prompts on demand with skill discovery and injection |
| [opencode-supermemory](https://github.com/supermemoryai/opencode-supermemory) | Persistent memory across sessions using Supermemory |
| [@plannotator/opencode](https://github.com/backnotprop/plannotator/tree/main/apps/opencode-plugin) | Interactive plan review with visual annotation and private/offline sharing |
| [@openspoon/subtask2](https://github.com/spoons-and-mirrors/subtask2) | Extend opencode /commands into a powerful orchestration system with granular flow control |
---