GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(fork): session create silently ignores ?directory= — honor it or reject loudly · Issue #1360 · developing-today/code

fix(fork): session create silently ignores ?directory= — honor it or reject loudly #1360

New issue
Copy link
New issue
Copy link
Closed
Closed
fix(fork): session create silently ignores ?directory= — honor it or reject loudly#1360
Copy link
Assignees
dezren39
Labels
effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedmeta/follow-upFollow-up spun out of earlier workmode/onlineFully doable remotely: design, config, code, cloudpriority/highImportant and time-sensitivesource/creatorFiled by the new-issue-creator jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Oct 27, 2026
Issue body actions

Found in the access-pattern benchmark (code#1344), 2026-10-27: POST /api/session?directory=/tmp/oc-bench-work returned a session whose location was /home/user — the query param is silently ignored; location only takes effect via the JSON body ({"location": {"directory": ...}}). The silent fallback ran a tool-enabled session in the account home directory and wrote a file there (f1.txt in /home/user) before the cause was spotted.

Fork: developing-today/opencode v2 API. Fix options, in preference order: honor ?directory= on session create for parity with the body's location; or return a 400 when an unknown/ineffective directory param is supplied. Silent fallback to the server's home is the one unacceptable behavior. Cover with a server test: create with the query param, assert the session location (or the 400).
Acceptance: no API path can produce a session in an unintended directory without an explicit, visible signal.

Acceptance criteria

  • No API path can produce a session in an unintended directory without an explicit signal: POST /api/session either honors ?directory= (parity with the body's location) or returns a 400 for the ineffective parameter.
  • A server regression test covers session create with the query param and asserts the session location (or the 400).
  • The silent fallback to the server's home directory is gone.

Activity

Next
  1. dezren39
    added
    meta/follow-upFollow-up spun out of earlier work
    on Oct 27, 2026
  2. developing-today commented on Oct 27, 2026

    @developing-today
    developing-todayBot
    on Oct 27, 2026 – with developing.today
    Contributor
    More actions

    CODE-460

  3. github-actions
    assigned
    dezren39
    on Oct 27, 2026
  4. dezren39 commented on Oct 27, 2026

    @dezren39
    dezren39
    on Oct 27, 2026
    MemberAuthor
    More actions

    Intake review

    Safety-relevant silent fallback: ?directory= on session create is ignored and the session lands in the account home directory — a tool-enabled session already wrote a file there during the benchmark. Preference order in the issue: honor the param, else reject loudly. Priority set high for the silent-wrong-directory failure mode.

    Related: Related: #1344 (benchmark that found it); fork repo developing-today/opencode (v2 API) is where the fix lands. Labels normalized by fleet monitor: the issue arrived with only meta/follow-up.

    Still live: checked this run — no merged PR in the recent merged list of this repo implements or resolves this issue, and no closing reference was found; the issue stays open.

    🤖 Agent note · filed

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: cron repo-fleet-monitor, run 2026-10-27 03:27 CDT
    • Found via: monitor reconciliation (intake enrichment, protocol §5)
    • Task: Intake review for fix(fork): session create silently ignores ?directory= — honor it or reject loudly #1360: verified still live, normalized labels, acceptance criteria appended.
    • Expectation: see effort label on the issue
    • Links: this issue
  5. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    status/needs-triageNot yet triaged; needs a first look
    priority/highImportant and time-sensitive
    effort/sSmall: expected under 2 hours of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    mode/onlineFully doable remotely: design, config, code, cloud
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    and removed
    status/needs-triageNot yet triaged; needs a first look
    on Oct 27, 2026
  6. 35 remaining items

  7. developing-today
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 8, 2026
  8. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 8, 2026
  9. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-p
    • Session / ID: task 11938
    • Found via: queue claim
    • Task: triage for issue fix(fork): session create silently ignores ?directory= — honor it or reject loudly #1360 handed off to the opencode claimant (assigned_lane=opencode, session unbound at handoff); claimant launches the bound opencode session that drives task 11938 to a terminal state.
    • Expectation: claimant drives task 11938 to a terminal state under this queue's worker id; if the claim lease expires first, task 11938 returns to the queue.
    • Links: task 11938 · issue fix(fork): session create silently ignores ?directory= — honor it or reject loudly #1360
  10. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-z
    • Session / ID: task 11938
    • Found via: queue claim
    • Task: task 11938 (triage for issue fix(fork): session create silently ignores ?directory= — honor it or reject loudly #1360) assigned to the opencode execution lane per §1b; handing off to the opencode claimant, which launches the bound session
    • Expectation: claimant launches the bound opencode session; task 11938 parked 1800s pending that launch
    • Links: issue fix(fork): session create silently ignores ?directory= — honor it or reject loudly #1360
  11. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane 262eb403-3347-4a7c-ba6b-e7bc263ca853
    • Session / ID: task 11938 · OpenCode session ses_e5e45af79eeffe93j54ZK7v0TB
    • Found via: atomic repo-queue claim
    • Task: revalidated issue fix(fork): session create silently ignores ?directory= — honor it or reject loudly #1360 OPEN. The reported behavior has been fixed in the separate OpenCode fork: PR aggregator: julesSummary presents a previous day's keeper totals as the last run's — the 'freshest note' is picked by lexicographic HHMM key, which rolls over at midnight #1587 is MERGED to developing-today-forks/opencode main at a8271fde; current main honors ?directory= for root sessions, gives payload location precedence, rejects directory+parentID, and includes regression tests. I will record it as already solved with this evidence rather than enqueue duplicate work.
    • Links: fix(server): honor session.create ?directory= with payload precedence (#1570) developing-today-forks/opencode#1587 · fix(fork): session create silently ignores ?directory= — honor it or reject loudly #1360
  12. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane 262eb403-3347-4a7c-ba6b-e7bc263ca853
    • Session / ID: task 11938 · OpenCode session ses_e5e45af79eeffe93j54ZK7v0TB
    • Result: already solved. The issue was valid when filed, but the exact behavior is now fixed on developing-today-forks/opencode main by merged PR aggregator: julesSummary presents a previous day's keeper totals as the last run's — the 'freshest note' is picked by lexicographic HHMM key, which rolls over at midnight #1587 (merge commit a8271fde665e3bc7e018d845a133b0c4af594c6c, merged 2026-11-04). Fresh main reads confirm POST /api/session honors the directory query for root sessions, payload location takes precedence, directory+parentID returns 400, and regression tests cover all three cases. PR check-runs were skipped; fix is present in current main. Closing this tracking issue with the merged-fix evidence; no duplicate follow-up task needed.
    • Links: fix(server): honor session.create ?directory= with payload precedence (#1570) developing-today-forks/opencode#1587 · developing-today-forks/opencode@a8271fd
  13. dezren39
    closed this as completedon Nov 8, 2026
  14. dezren39
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 8, 2026
  15. developing-today
    added
    status:done
    on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedmeta/follow-upFollow-up spun out of earlier workmode/onlineFully doable remotely: design, config, code, cloudpriority/highImportant and time-sensitivesource/creatorFiled by the new-issue-creator jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.