Commit graph

23226 commits

Author SHA1 Message Date
Sebastian Herrlinger
c9fc80f292 docs(codemode-rust): update the recording and test262 counts in PR.md 2026-11-19 23:00:23 +01:00
Sebastian Herrlinger
ae487b3bcb test(codemode-rust): record host functions that built-ins call with getters in their arguments
A host function used as a callback, through call, apply or bind, or as a
promise handler reads its arguments' program getters first, as when
program code calls it; a getter that throws fails or rejects the call.
2026-11-19 22:59:46 +01:00
Sebastian Herrlinger
0c6ec4e9cd fix(codemode-rust): define the built-ins' properties in the reference's order
Object.getOwnPropertyNames of every built-in constructor and prototype now
lists the reference's names in its order: methods, constants and accessors
move to where the reference defines them, generator prototypes get their
read-only constructor, and Symbol has no prototype. A conformance case
records the names of all of them.
2026-11-19 22:59:46 +01:00
Sebastian Herrlinger
0962708e9d feat(codemode-rust): classes, ported from #64965, and BYTES_PER_ELEMENT from #64930
Class declarations and expressions with constructors only new may call,
instance and static methods, accessors and fields, extends of classes and
Error types, super(...) and super.x reads, writes, calls, compound
assignments and deletes (also in object literal methods), home objects,
derived constructors' this before super() and their return rules,
Function.prototype's restricted caller and arguments, class names in
console.log, and the reference's texts for refused class syntax,
decorators and private names. An element read or written with an object
key now calls a program getter or setter, and a function under a computed
key is named by it. Uint8Array, its prototype and Buffer get
BYTES_PER_ELEMENT. #64919 changes only test hooks. Recordings regenerated
from the reference, with class cases from its tests.
2026-11-19 22:59:18 +01:00
Sebastian Herrlinger
7927b7fc9b Merge remote-tracking branch 'origin/dev' into codemode-rust
# Conflicts:
#	packages/codemode/src/language/vm.ts
#	packages/codemode/test/test262/skipped.txt
2026-11-19 22:11:20 +01:00
usrnk1
19ee066471
fix(app): show the composer focus ring only when focus arrives by keyboard (#64976) 2026-11-19 21:00:29 +00:00
Kit Langton
36bd410cad
test(core): advance the clock until the video wait finishes (#64980) 2026-11-19 12:49:48 -08:00
James Long
5051718713
feat(tui): open the first busy tab when the picker opens with down (#64972) 2026-11-19 15:43:44 -05:00
Kit Langton
1c90a3ea9e
refactor(core): identify a file by its environment and path (#64928) 2026-11-19 12:43:40 -08:00
usrnk1
1e731f7b19
fix(app): keep the status line clear of the activity pill (#64973) 2026-11-19 20:36:02 +00:00
Kit Langton
2e7eabc592
fix(core): format only files on the server's own machine (#64925) 2026-11-19 12:33:48 -08:00
James Long
b9a2dc32cb
feat(tui): add a Scripts tab to the composer picker (#64956) 2026-11-19 15:24:43 -05:00
Kit Langton
a48ff45c50
refactor(core): environments have an id (#64923) 2026-11-19 12:19:53 -08:00
Filip Hejmowski
b4d81f04ad
fix(core): refuse to rewrite files that are not valid UTF-8 (#64868) 2026-11-19 20:51:28 +01:00
James Long
dfc06f7764
fix(app): keep job events that arrive while the job list loads (#64966) 2026-11-19 14:46:23 -05:00
Sebastian
9fd74ebdb7
fix(cli): keep service password out of the CLI log (#64911) 2026-11-19 20:31:56 +01:00
usrnk1
b9d82b7eb1
docs: add focus-states skill for keyboard focus rings and focus movement (#64963) 2026-11-19 19:31:05 +00:00
James Long
ca729da9a5
fix(codemode): pass the in-scope test262 class tests (#64965) 2026-11-19 19:21:12 +00:00
James Long
668a4f4487
fix(tui): use buttons and single-row gaps in prompt and export dialogs (#64944) 2026-11-19 14:14:24 -05:00
James Long
5d4f55d298
fix(tui): lighten opencode2's light-mode grays (#64962) 2026-11-19 19:13:46 +00:00
Sebastian Herrlinger
064db7aacc docs(codemode-rust): update the recording and test262 counts in PR.md 2026-11-19 20:08:34 +01:00
Sebastian Herrlinger
563db04d65 test(codemode-rust): record getters, setters and descriptors from the reference
New cases for accessor literals and the descriptor built-ins, host runs where
getters cross into host calls, park on a host wait or survive a suspend, and a
collector test for accessor halves replaced while cycles run.
2026-11-19 20:08:34 +01:00
Sebastian Herrlinger
ead8cc30c2 feat(codemode-rust): getters and setters
Port d3f6559d93 (#64908) to psychoscript: object-literal get/set, accessor
properties and their descriptors (defineProperty, defineProperties,
getOwnPropertyDescriptor(s), getOwnPropertyNames, Object.create with
descriptors), program getters and setters called from property instructions,
built-ins reading getters ahead and running again (withReads), getters in
iteration, conversions, thenables, JSON, the result crossing and host-call
arguments, display labels, and a streaming response's live state as hidden
accessors. Accessor pairs are heap objects, traced and saved like any other.
Recordings regenerated from the reference; both test262 lists are empty.
2026-11-19 20:07:51 +01:00
opencodejr[bot]
312d119469
fix(app): mock the background job list in the e2e mock server (#64959)
Co-authored-by: opencodejr[bot] <348916617+opencodejr[bot]@users.noreply.github.com>
2026-11-19 20:06:32 +01:00
Filip Hejmowski
83f90214f2
feat(app): add setting to keep the side panel across sessions (#64950) 2026-11-19 20:05:50 +01:00
James Long
a41a53505b
feat(core): let Code Mode scripts block for 2 minutes before moving to the background (#64957) 2026-11-19 14:05:04 -05:00
usrnk1
d99e203f97
fix(ui): unify focus ring and add missing focus states (#64909) 2026-11-19 18:57:37 +00:00
Aiden Cline
10e5856f05
fix(codemode): define Uint8Array BYTES_PER_ELEMENT (#64930) 2026-11-19 12:45:52 -06:00
James Long
847de275f8
fix(app): drop the background work subtitle from subagent rows (#64951) 2026-11-19 18:38:00 +00:00
Aiden Cline
a0ef1e99b9
feat(app): ask the workspace admin when the ChatGPT Business limit is reached (#64926) 2026-11-19 12:25:17 -06:00
opencode-agent[bot]
b104f97744
docs: deprecate Inkling 2 Small Free (#64940) 2026-11-19 10:21:48 -08:00
James Long
da3689ee40
fix(tui): draw the delete-confirm row's selection bar in red (#64936) 2026-11-19 18:14:20 +00:00
James Long
edf960b4a6
fix(tui): let overflowing dialog lists cut off instead of showing an ellipsis row (#64934) 2026-11-19 18:13:38 +00:00
James Long
99952796f1
fix(core): include a running tool's progress metadata when reading messages (#64929) 2026-11-19 18:13:29 +00:00
Aarav Sareen
de81b817b1
fix(app): polish free model picker and connect dialog (#64927) 2026-11-19 23:37:22 +05:30
James Long
1a01c3bbe0
test(codemode): deterministic suspend points in the accessor tests (#64919) 2026-11-19 18:06:26 +00:00
Sebastian Herrlinger
4023cfa913 Merge remote-tracking branch 'origin/dev' into codemode-rust
# Conflicts:
#	packages/codemode/src/language/generators.ts
#	packages/codemode/src/language/internal-prelude.ts
#	packages/codemode/src/language/prelude/bytecode.json
#	packages/codemode/src/language/runtime/errors.ts
#	packages/codemode/src/language/vm.ts
#	packages/codemode/test/test262/skipped.txt
2026-11-19 19:01:08 +01:00
Kit Langton
011f9043e8
refactor(core): shell commands run in the environment of their working directory (#64815) 2026-11-19 09:28:22 -08:00
James Long
bf06224462
fix(session-ui): keep each run's reply out of the activity group (#64917) 2026-11-19 12:23:12 -05:00
Kit Langton
eb452cd278
refactor(core): search runs in the environment of the path it resolved (#64814) 2026-11-19 09:19:15 -08:00
Sebastian Herrlinger
ccbc2f1cfc docs(codemode): describe the psychoscript collector in the README, PR and bench/GC.md 2026-11-19 18:13:57 +01:00
James Long
d3f6559d93
feat(codemode): getters and setters (#64908) 2026-11-19 17:12:53 +00:00
Caleb Norton
5ef7657335
chore: update nixpkgs (#64700) 2026-11-19 11:09:29 -06:00
Sebastian Herrlinger
8e7f70739f fix(codemode): compact deleted Map and Set entries
OrderedMap never dropped its tombstones, so a Map or Set with constant churn
grew without bound. Each entry now has a logical position, numbered in
insertion order and never reused, and iterators, forEach and the Set methods
hold logical positions instead of slots, through OrderedMap::next_entry.

Once tombstones outnumber live entries (and 32), a delete compacts: tombstones
in front alone move the rest down, as index values count from a wrapping
shift; otherwise every survivor moves, keeping its position in a column used
only when positions have gaps. Snapshots save live entries with their
positions and the next one.
2026-11-19 18:09:25 +01:00
Sebastian Herrlinger
a2145a982d feat(codemode): free atoms that long-lived psychoscript runs no longer use
An atom now lives exactly as long as its string. Marking an object marks
its keys' atoms, and names in natives, namespaces, globals and host
namespaces are traced too. Map and Set entries keep a string key as its
atom's string, as JSON.stringify's walk now does for the keys it holds,
so tracing the entry keeps the atom. While a cycle runs the interner
shades every atom it gives out. The sweep frees atoms whose strings were
not reached and the interner reuses their ids.

Atoms of the fresh runtime and of the compiled program stay permanent.
Snapshots save a freed atom as null and restore it as a free id.
2026-11-19 18:09:25 +01:00
James Long
f15ed39165
feat(app): show Code Mode scripts and subagents' background work as running work (#64790) 2026-11-19 12:07:01 -05:00
Luca Barbato
bca1def93b
fix(ai): classify OpenAI cyber_policy refusals as content policy (#64844) 2026-11-19 17:06:21 +00:00
Kit Langton
df313c5209
refactor(core): image and video tools use the environment of the path they resolved (#64813) 2026-11-19 08:58:37 -08:00
Filip Hejmowski
773b9d0ec2
fix(process-daemon): spawn Windows pipe processes suspended before joining their job (#64901)
Some checks failed
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404, x86_64-linux) (push) Waiting to run
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404-arm, aarch64-linux) (push) Waiting to run
bot-nix-hashes / hash (blacksmith-6vcpu-macos-latest, aarch64-darwin) (push) Waiting to run
bot-nix-hashes / compute (push) Blocked by required conditions
bot-nix-hashes / publish (push) Blocked by required conditions
check-nix / nix-eval (push) Waiting to run
check / typecheck (push) Waiting to run
deploy-files / files-build (push) Waiting to run
deploy-files / files-deploy (push) Blocked by required conditions
deploy-site / site-build (push) Waiting to run
deploy-site / site-deploy (push) Blocked by required conditions
deploy / legacy-build (push) Waiting to run
deploy / legacy-deploy (push) Blocked by required conditions
deploy / data-build (push) Waiting to run
deploy / data-deploy (push) Blocked by required conditions
Process daemon / Miri (callback ownership) (push) Has been cancelled
Process daemon / Core (blacksmith-6vcpu-macos-15) (push) Has been cancelled
Process daemon / Core (ubuntu-22.04) (push) Has been cancelled
Process daemon / Windows (arm64) (push) Has been cancelled
Process daemon / Windows (x64) (push) Has been cancelled
2026-11-19 17:53:54 +01:00
opencodejr[bot]
40a01f1f63
test(app): expect the large connect dialog size in the providers e2e (#64912)
Co-authored-by: opencodejr[bot] <348916617+opencodejr[bot]@users.noreply.github.com>
2026-11-19 11:50:48 -05:00