You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mirrored from upstream 1jehuang/jcode — Pull 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)
Need help on this PR? Tag @codesmith with what you need.
Summary
Fix a compile error on master caused by a stale field access.
reasoning_effortwas refactored fromSessionto the provider layer, butovernight.rs:384was still trying to copy it from a parent session. This causes:The child session already inherits
reasoning_effortfrom the provider associated withprovider_key, which is copied on the preceding line. The field assignment is unnecessary and was missed during refactoring.Changes
src/overnight.rs: delete 1 lineTest plan
cargo checkpasses (was failing on master before this fix)Need help on this PR? Tag
@codesmithwith what you need.