Skip to content

[Upstream PR #103] fix: remove stale reasoning_effort field access on Session #88

@quangdang46

Description

@quangdang46

Mirrored from upstream 1jehuang/jcodePull Request #103 by @angziii
Original state: open
Created: 2026-05-02T20:20:27Z · Updated: 2026-05-02T20:20:30Z
Diff: https://github.com/1jehuang/jcode/pull/103.diff
This issue is an auto-mirrored copy. Comments and edits here are local to quangdang46/jcode — do not expect them to propagate upstream.


Summary

Fix a compile error on master caused by a stale field access.

reasoning_effort was refactored from Session to the provider layer, but overnight.rs:384 was still trying to copy it from a parent session. This causes:

error[E0609]: no field `reasoning_effort` on type `session::Session`
   --> src/overnight.rs:384:11
    |
384 |     child.reasoning_effort = parent.reasoning_effort.clone();
    |           ^^^^^^^^^^^^^^^^ unknown field

The child session already inherits reasoning_effort from the provider associated with provider_key, which is copied on the preceding line. The field assignment is unnecessary and was missed during refactoring.

Changes

  • src/overnight.rs: delete 1 line

Test plan

  • cargo check passes (was failing on master before this fix)

View in Codesmith
Need help on this PR? Tag @codesmith with what you need.

  • Let Codesmith autofix CI failures and bot reviews

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions