GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [FEATURE]: File locks / Vim-style locks for OpenCode locks · Issue #4278 · anomalyco/opencode Closed Labels discussionUsed for feature requests, proposals, ideas, etc. Open discussion DescriptionFeature hasn't been suggested before.
Describe the enhancement you want to requestFeature request: File locks / Vim-style locks for OpenCodeSummary Add support for file locking in
MotivationRight now, multiple editors/agents interacting with the same repo can easily end up overwriting each other’s changes, especially when:
Vim-style file locks (or equivalent) would allow OpenCode to:
This is particularly useful for building multi-agent workflows on top of Proposed behavior (high-level)I’m not attached to any specific API – this is more about desired semantics. A few ideas: 1. Advisory file locks
2. Vim-like UX semanticsVim-style semantics could look like:
This doesn’t have to be literally Vim’s format, just the same idea: a simple, visible, file-based lock mechanism that plays nicely in a shared workspace. 3. Concurrency support for agentsWith locks in place, higher-level orchestration could:
Example desired flow for agents:
API ideas (sketch)One possible direction (purely illustrative): // Advisory lock const lock = await opencode.lockFile("src/foo.ts", { mode: "exclusive", // "exclusive" | "shared" wait: true, timeoutMs: 5000, }); // Use the file safely here... await lock.release(); // or opencode.unlockFile("src/foo.ts"); Reacted by Tommy D. Rossi and ShibuyaCyana Activity
MetadataMetadataAssigneesLabelsdiscussionUsed for feature requests, proposals, ideas, etc. Open discussion TypeProjectsMilestoneRelationshipsDevelopmentIssue 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. |