Skip to content

refactor: flatten session open flow - #296

Merged
thymikee merged 3 commits into
mainfrom
codex/simplify-session-open-prepare-flow
Mar 27, 2026
Merged

refactor: flatten session open flow#296
thymikee merged 3 commits into
mainfrom
codex/simplify-session-open-prepare-flow

Conversation

@thymikee

@thymikee thymikee commented Mar 27, 2026

Copy link
Copy Markdown
Member

Summary

Flatten the session open flow by moving the control flow back into session-open.ts and reducing session-open-prepare.ts to small helper functions.

This removes the old prepared-command abstraction, keeps validation to a single pass per path, and uses an explicit discriminated result when preparing open details so the handler does not rely on fragile shape checks.

Validation

  • pnpm format
  • pnpm typecheck
  • pnpm test:unit
  • pnpm test:smoke

@github-actions

github-actions Bot commented Mar 27, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://callstackincubator.github.io/agent-device/pr-preview/pr-296/

Built to branch gh-pages at 2026-03-27 12:46 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@thymikee thymikee changed the title [codex] Simplify session open preparation flow [codex] Flatten session open flow Mar 27, 2026
@thymikee
thymikee marked this pull request as ready for review March 27, 2026 12:52
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@thymikee thymikee changed the title [codex] Flatten session open flow Flatten session open flow Mar 27, 2026
@thymikee thymikee changed the title Flatten session open flow chore: flatten session open flow Mar 27, 2026
@thymikee thymikee changed the title chore: flatten session open flow refactor: flatten session open flow Mar 27, 2026
@thymikee
thymikee merged commit 6ef0dfa into main Mar 27, 2026
12 checks passed
@thymikee
thymikee deleted the codex/simplify-session-open-prepare-flow branch March 27, 2026 12:53
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.

1 participant