Skip to content

Issue 122: define first-class runner harness interfaces - #124

Merged
rawkintrevo merged 4 commits into
mainfrom
122-runner-harnesses
Jun 23, 2026
Merged

Issue 122: define first-class runner harness interfaces#124
rawkintrevo merged 4 commits into
mainfrom
122-runner-harnesses

Conversation

@rawkintrevo

Copy link
Copy Markdown
Owner

Summary

  • add a shared runner harness catalog and persist harnessId on sessions
  • move auth, skill, MCP, and subagent behavior behind harness-aware Functions and runner services
  • add harness-aware frontend support checks plus a new workspace subagents panel and modal
  • update developer docs for the runner harness contract and rollout behavior

Testing

  • npm --prefix functions test
  • npm --prefix session-runner run lint
  • npm --prefix session-runner test
  • npm run test:frontend
  • npm run build
  • npm run docs:check

QA

  • Skipped manual QA per request

Closes #122

@github-actions

github-actions Bot commented Jun 23, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit b28dc28):

https://pi-agents-cloud--pr124-122-runner-harnesses-lhhllgee.web.app

(expires Tue, 07 Jul 2026 21:26:39 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: ad3a3866d5dcd316f5eca68b23f0ce7295063677

@rawkintrevo

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 858fb49026

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread session-runner/lib/pi.js Outdated
Comment on lines +14 to +15
const skillService = createWorkspaceSkillService({config, syncUp});
const subagentService = createWorkspaceSubagentService({config, syncUp});

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Defer harness-only services for shell runners

For Shell and SSH sessions, server.js still constructs createPiService unconditionally, but this now eagerly constructs workspace skill/subagent services whose harness helpers throw when the active harness does not support those features. With HARNESS_ID=shell (the default image) the runner process fails during startup before the terminal can serve requests, so shell/SSH sessions cannot start; these services need to be lazy or tolerate unsupported harnesses.

Useful? React with 👍 / 👎.

Comment on lines +118 to +120
function agentAuthDoc(uid, db) {
return db.collection("users").doc(uid).collection("private").doc("agentAuth");
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Read the legacy piAuth document during auth migration

For users who saved Pi credentials before this change, the data is still stored in users/{uid}/private/piAuth; switching every auth read/write to agentAuth without a fallback or copy makes /api/auth and the legacy /api/pi-auth alias return no saved entries, and runners have no remote credentials to materialize until users re-enter them. Please migrate or read the old document during rollout.

Useful? React with 👍 / 👎.

Comment on lines +43 to +45
const data = snap.exists ? snap.data() : {};
if (!Object.prototype.hasOwnProperty.call(data, "authSelection")) return null;
return normalizeAuthSelection(data.authSelection);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Honor legacy piAuthSelection when materializing auth

Existing session documents store their per-session credential choices as piAuthSelection, but the new runner only checks for authSelection and returns null otherwise. When an existing Pi session is restarted under this runner, buildMaterializedAuth falls back to the full provider set instead of the previously selected entries, so saved session auth choices are ignored until the user manually saves them again.

Useful? React with 👍 / 👎.

@rawkintrevo

Copy link
Copy Markdown
Owner Author

codex fails to launch invalid ID token format at line 5 column 18 shown in console

@rawkintrevo
rawkintrevo merged commit 906a2a2 into main Jun 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Define a first-class runner harness interface for auth, skills, MCP, subagents, and config

1 participant