MCPcopy Index your code
hub / github.com/anomalyco/opencode / title

Function title

packages/opencode/src/cli/cmd/run.ts:450–454  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

448 ]
449
450 function title() {
451 if (args.title === undefined) return
452 if (args.title !== "") return args.title
453 return message.slice(0, 50) + (message.length > 50 ? "..." : "")
454 }
455
456 async function session(sdk: OpencodeClient): Promise<SessionInfo | undefined> {
457 if (args.session) {

Callers 8

sessionFunction · 0.70
prompt.tsFile · 0.50
DialogTitleGroupFunction · 0.50
triggerFunction · 0.50
renderFunction · 0.50
triggerFunction · 0.50
titleContentFunction · 0.50
BasicToolV2Function · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected