The adapter requests the message-tags capability when the server offers it (together with sasl when a password is set) and remembers the ACK. Incoming @+typing=active|paused tags on TAGMSG or PRIVMSG become typing events with conv (channel or sender), on and who; the typing command sends @+typing=active|paused TAGMSG <conv> through the output queue, and is ignored when the capability was not negotiated. tests/irc_typing.py offers message-tags, checks the CAP REQ, sends alice's active/paused TAGMSGs, and verifies the adapter's own TAGMSG lines for typing on/off; all checks pass. The four existing IRC fake-server suites (adapter, channels, messages, reconnect) still pass with the new binary. In-tree build and harness follow.
The UI gains a typing hook: XmNmodifyVerifyCallback sends typing on for the first change (and after a pause) with the current conversation, resets a 2.5 s timeout that sends off, finishes the old conversation when the selection changes, and ignores programmatic set_input (suppress flag). accounts_run sets the hook to dc_adapter_send_typing of the account that owns the conversation, so XMPP sends XEP-0085 composing/paused; the IRC adapter ignores the command it does not implement. DTCHAT_ACCOUNTS_DEBUG logs the on/off transitions. In-tree build and a focus-based check follow.
The file protocol now carries the sender's SHA-256: the adapter computes it with dc_file_sha256 for an outgoing transfer, puts it into the IBB open metadata (urn:dtchat:file:0 sha256 attribute) and into file-sent, and passes the attribute of an incoming open through in file-offer. The UI stores the offered hash, hashes the part file at file-end and only renames when it matches; a mismatch removes the part file, reports 'file rejected: checksum mismatch' in the status line and the transcript, and never exposes the bytes under the final name. The fake adapter offers the correct hash in mode files and a wrong one in mode badhash. tests/xmpp_ibb.py checks the SHA-256 in the outgoing open and in the incoming offer. Verified stand-alone under Xvfb: mode files writes the 11-byte hello world, mode badhash leaves no file and no .part; the XMPP IBB suite passes with the hash checks. In-tree build and harness follow.
accounts_run.c handles file-offer/file-data/file-end/file-reject/file-error: an offer creates the conversation and opens the existing file dialog, accepts send file-accept and write the base64 chunks into NAME.part (0600) in the state directory, file-end renames to a free name and adds a system line to the transcript, a reject sends file-reject and removes the part file; a file-sent confirms our own transfer. The runtime sets the UI file hook, so Conversation > Send File now works for an adapter account: send_file_cb falls back to the open conversation when there is no Nearby peer, and the hook sends file-send with the generated id. dc_adapter_send_file()/dc_adapter_file_answer() are the core side. The offer dialog was only 128x52 because its shell size was overridden before the popup; it now sets form and shell and repeats after 50 ms, and the timer is removed on destroy. The fake adapter gained a 'files' mode (offer, data, end on accept, reject on reject, file-sent on send). Verified under Xvfb: offer dialog 460x190, Accept by click writes hello world (11 bytes), Reject leaves no file, and DTCHAT_TEST_UI_SEND_FILE produces file-send/file-sent; screenshots build/mcde-shots/dtchat-file-offer.png and dtchat-file-received.png. In-tree build and harness follow.
xmpp_adapter.c uses EVP_EncodeBlock/DecodeBlock; the transitive -lcrypto of libDtChat.la is not enough for the program link (DSO missing from command line), so dtchat_xmpp_LDADD names CRYPTOLIB explicitly.
The adapter protocol gains additive file events: file-send (conv, id, name, path), file-accept/reject/cancel commands, and file-offer/file-data/file-end/file-sent/file-reject/file-error events, with a 32 MiB limit, 4 KiB blocks and an explicit accept before data flows; docs/reference/dtchat-adapter-protocol.txt defines them. xmpp_adapter.c implements XEP-0047: outbound open (with the name/size in a urn:dtchat:file:0 child), base64 data IQs acknowledged one by one and close, then file-sent; inbound open is held until file-accept answers the IQ, data chunks become file-data events, close becomes file-end, and a reject is an IQ error. libstrophe serialises a tag's text through a separate text stanza (set_text on a named tag returns -2), which the data blocks now do. tests/xmpp_ibb.py drives a minimal server: outgoing bytes arrive unchanged, an accepted incoming file yields offer/data/end with the right size, and a rejected offer becomes an IQ error; all 26 checks pass, exit 0, no stderr. The UI file path for adapter accounts (offer dialog, accept, writing the chunks) is the next piece; the adapter itself is complete.
conn_handler used to send a bye and exit 0 on any disconnect, which the core reads as an intentional stop. Now an unexpected end of the stream (or a failed connection) reports offline, sends no bye and exits 1: DcAdapter's existing restart policy starts the process again with backoff and the hello/configure/connect handshake repeats (the policy is covered by DtChat/test_adapter). A requested disconnect still leaves through handle_command with quitting set, bye and status 0. tests/xmpp_drop.py closes the stream after the bind and checks status 1, the offline state and no bye; xmpp_fake.py and xmpp_muc.py still pass, all with the standalone adapter. In-tree build/tests follow.
accounts_run.c loads accounts.json (id, protocol, label, adapter, settings, enabled) and secrets.json (per account id) and starts one DcAdapter per enabled account, pumping the DcLoop from an Xt timeout. Its events go into the model and the panel: state into the status line, conversation (direct/channel/group) and roster entries into the model (roster sets presence), messages into the transcript via dtchat_ui_message_added, presence/typing/errors into the status/dialog, request events into the existing request dialog with the answer routed to that adapter. The UI send hook resolves the selected account (dtchat_ui_current_account) or the account that owns the conversation and calls dc_adapter_send_text; dtchat_accounts_join/_typing expose join and XEP-0085 for menus and tests. Normal GUI runs (not --demo/--local/--perf/--smoke) start with an empty model and the configured accounts; the demo peers are gone in that mode. dtchat-irc is installed next to dtchat and listed in the PLIST; dtchat-xmpp and the demo adapter remain build artifacts. Verified with the fake adapter under Xvfb (accounts fake: starting/online/sent alice/message alice), including the real UI send path (DTCHAT_TEST_UI_SEND), screenshot build/mcde-shots/dtchat-accounts.png; --smoke-test still passes.
join sends a presence to room/nick with the http://jabber.org/protocol/muc <x/>; the room's self-presence is answered with a conversation event (kind group, title room), other occupants are reported as presence events with buddy=room/nick, groupchat messages are filed under the room with the sender's nick in from, and part sends an unavailable presence. The nick is the JID's local part. The hello caps gain muc. tests/xmpp_muc.py drives a minimal server through stream, SASL PLAIN, bind, join (checks the MUC element), self-presence, alice's presence, a groupchat message and the part; all 17 checks pass, exit 0, no stderr. UI wiring for adapter accounts is still open, as is the live test.
After the bind the adapter enables XEP-0280 carbons and unwraps sent/received forwarded messages: a message another of our resources sent becomes a normal message event with self=true and the contact as conv, a received one self=false. XEP-0085 chat states are handled before the body: composing emits typing on, paused/active/inactive/gone off. The typing command sends composing or paused to the conversation, and dc_adapter_send_typing() puts it on the core side. tests/xmpp_fake.py checks carbons were enabled, the forwarded message (self, conv bob, text), typing on/off from bob, and that a typing command reaches the server as <composing> addressed to bob. Standalone adapter: all checks ok. The UI does not send typing for adapter accounts yet (adapter account wiring is still open), which the commit documents.
After the bind the adapter sends <presence/> and asks for the roster (iq get, jabber:iq:roster) and handles the result and pushes: every item becomes a roster event with the contact's id, name, subscription and current online state. Presence from contacts is tracked per bare JID and emitted as presence events (online with the XMPP show and status, offline, subscribe/unsubscribe); libstrophe 0.14's get_text is used for child text. The hello caps gain roster and presence, and the event shapes follow docs/reference/dtchat-adapter-protocol.txt (buddy, contact, away). tests/xmpp_fake.py now checks that the client announces itself and asks for the roster, delivers bob (name/subscription) and carol, the online-with-show/status and offline presence, and still carries messages both ways. Run against the standalone adapter: 22 checks, all ok. In-tree build pending: make mcde-host is running after the configure change.
The call window gains a Camera button that cycles the video source (/dev/video0..3, then the test pattern) through a hook in localui; the status line names the new backend (e.g. video source: v4l2:/dev/video0), and the button is insensitive in --call-demo. The in-call status now says 'in the call - LAN only, no relay', the note the plan asks for. Verified live between two UIs under Xvfb: the Camera button switched the sender from camera to pattern and back, the status line showed the backend, and video kept flowing; screenshots build/mcde-shots/dtchat-t76-camera.png, dtchat-t76b.png, dtchat-t76-video-off.png, dtchat-t76-full.png. Video off, full screen and resize-aware rendering were committed in 4e967b8a3c.
media_capture.c: V4L2 (YUYV, 4 mmap buffers, poll, QBUF again after use) and a
test pattern; a camera with another size is scaled to the call's 640x360, and a
build without HAVE_V4L2 gets the pattern. On this T14 the integrated camera is
/dev/video0 and gives frames (test_capture: v4l2:/dev/video0, non-uniform
frame, 320x180 through the scaler; pattern frames differ and have Y and
chroma). configure defines HAVE_V4L2 for linux/videodev2.h.
media_video.c gains dc_vpx_enc_keyframe (VPX_EFLAG_FORCE_KF on the next
frame), media_packet a DC_MEDIA_KFREQ control, media_call
dc_call_request_keyframe/take and DC_MEDIA_KFREQ in the sealed type range.
dc_call_video_out now decodes the reassembled VP8 frame into I420 (it returned
the compressed frame, which the UI drew as a green picture);
dc_call_video_packet keeps the compressed frame for tests and recordings.
Video timestamps are wall clock, not frame counts, so a pump slower than 15 fps
does not drift behind the audio clock.
localui starts camera+encoder on entering the call, sends 15 fps, requests a
keyframe after a loss, forces one when asked, decodes incoming frames into the
call window, drains up to four 20 ms capture frames per 40 ms pump (one per
pump halved the audio clock), and logs video in/out under
DTCHAT_CALL_DEBUG; DTCHAT_TEST_VIDEO switches to the pattern.
Two UIs under Xvfb: A pattern, B camera, 90 frames each way in about 6 s,
audio 300 frames (real time), the window shows the peer's picture
(build/mcde-shots/dtchat-t71-video-call.png). test_video_packet uses the
packet interface; its 50 KB/42-fragment loopback check still passes. New
harness entry DtChat/test_capture (43). In-tree build pending: a foreign
make release holds the lock.
ui_call.c renders into the drawing area's current size (XmNwidth/XmNheight read as Dimension, not int - the old read left garbage in the upper half of an int and the frame went nowhere), reallocates the pixel buffer and XImage when the area changes, and draws from the XmNexposeCallback/XmNresizeCallback (an Xt event handler ran before Motif cleared the window). The buttons row gains Video and Full screen toggles: video off keeps the area in place (clearing it, so the form does not shrink) and says so in the status line; full screen sets the shell to the screen size at 0,0, the area to the height below the buttons and back to the position the dialog manager chose. The normal window is 640x420, the video is fitted with black bars (BT.601 XRGB, one XPutImage). Verified under Xvfb 1280x800: 640x420 normal, Video off -> cleared area with 'video is off', Video on -> image again, Full screen -> 1280x791 at 0,0 with a 1280x720 fit, back -> 640x421 at 60,59; --smoke-test PASS; two UIs still reach IN_CALL and carry 150+ Opus frames. Screenshots build/mcde-shots/dtchat-t76b.png, dtchat-t76-video-off.png, dtchat-t76-full.png.
dtchat-headless gains --call, --audio-in FILE and --audio-out FILE: it exchanges media-key on the ready link, calls the peer, answers an incoming ring (it is a test peer, so the answer is automatic), and pumps the call from its loop: a 20 ms frame from the raw s16le 48 kHz file is encoded and sent while in the call, received frames are decoded into the output file, and call/audio events go to stdout. tests/p2p-audio.sh starts two instances (A listens and records, B connects, calls and plays tests/tone.py's 2 s 440 Hz tone), waits for both in-call, for 100 received frames, prints the CPU time of both, quits them and has tests/tone-check.py verify the recording (length within 25 percent, RMS > 500, zero crossings within 15 percent). Standalone run: A 45475, both in-call, recording 2.00 s / RMS 6339 / 441 Hz, all ok. Wired into the harness as DtChat/p2p-audio (42 entries). In-tree build pending: a foreign make userland holds the lock.
The local protocol gets media-key: each side sends its ephemeral X25519 public key (base64) and UDP port over the ready text connection; both derive the direction keys with HKDF-SHA256, the caller is the initiator. localui sends the key on Conversation > Call, answers an offer with its own key, creates the call with dc_call_new_bound on the listener port (TLS and media share the number), rings, and opens the call window; an incoming ring enables Answer. The Xt loop pumps the call: drain, Opus decode to the playback stream, capture and encode only while our own PTT is held, video frames to the window, ring timeout. dc_local_conn_remote_addr gives the numeric peer address; dc_call_new_bound binds the announced port. dc_call_talking() is now only our own key, dc_call_peer_talking() the peer's (a received PTT used to start our microphone too). The call window has an Answer button and lays the buttons above the video so they stay visible. --call-first and DTCHAT_TEST_TRUST/DTCHAT_TEST_AUTOANSWER/DTCHAT_TEST_PTT drive the test: two UI instances auto-paired, exchanged media-key, rang, answered, reached IN_CALL and carried 200 Opus frames caller->callee with the callee silent (audio out 200 on the receiver, audio in 200 on the sender); screenshot build/mcde-shots/dtchat-t65-live.png. The smoke still passes; test_media_call uses peer_talking; test_media_packet covers the base64 key exchange. The test switch is documented in the security review.
ui_call.c: a Motif window for one call with a 480x270 video area, status line, Push to talk (a toggle wired to dc_call_send_ptt), Hang up (dc_call_hangup + owner callback) and Close. The newest I420 frame is scaled bilinearly to an aspect-preserving rectangle, converted with dc_i420_to_xrgb, composed into one 0x00RRGGBB buffer (black bars around it) and blitted with one XPutImage on expose or a new frame; no per-plane drawing. dc_call_new_bound() binds the UDP socket to the announced port, so a peer's service port serves TLS and media. --call-demo opens the window with a synthetic gradient frame; --smoke-test creates the window, sets a frame and checks it is there. Standalone build: smoke PASS, screenshot build/mcde-shots/dtchat-t76.png (video, status, Push to talk/Hang up/Close). A live call still needs the media-key exchange in the local text protocol (next: T6.5); camera capture is T7.1.
xmpp_adapter.c speaks protocol v1 on stdio with libstrophe: hello with jid/password/resource/host/port, configure, connect (resource appended to a bare JID), xmpp_run_once in the main loop next to a non-blocking stdin, state connecting/online/offline, text messages in both directions (incoming message events, 'sent' for our own), network/stream errors, clean disconnect and bye. DTCHAT_XMPP_NO_TLS/TRUST_TLS exist for tests. libstrophe 0.14's get_text_ptr() returned NULL for a parsed body, so the adapter uses get_text() and frees it. configure checks strophe.h and libstrophe (MCDE_STROPHE); without it dtchat-xmpp is not built. tests/xmpp_fake.py runs a minimal XMPP server (stream header, SASL PLAIN, resource bind, one message each way) and the adapter passes: online after bind, incoming text and bare-JID conversation, outgoing stanza addressed and delivered, SASL payload, bye and exit 0, no stderr. In-tree build pending: a foreign release chain holds the lock (pid 141722).
bin_PROGRAMS now installs dtchat and dtchat-headless; man_MANS installs dtchat.1 (the roff source was renamed from dtchat.man because automake treats .man as section m). The PLIST gains the lines for bin/dtchat, bin/dtchat-headless, app-defaults/C/Dtchat, the three Dtchat icons, appconfig/types/C/dtchat.dt, appmanager/C/Internet/Dtchat, the C and de_DE.UTF-8 dtchat.cat and dt/man/man1/dtchat.1. Verification (make mcde-host MCDE_DIRS=install, mcde-plist-check, pkg_add/pkg_delete) is pending: a foreign release chain holds the lock (pid 141722).
i18n.c opens catopen("dtchat", NL_CAT_LOCALE) and dc_text(id, fallback) reads set 1; the program calls dc_i18n_init after setlocale. The visible labels of the main window, the account editor, the request/peer/file/pair dialogs and the local status texts use ui_text.h ids; dtchat.msg (English) has 75 entries and programs/localized/de_DE.UTF-8/msg/dtchat.msg the German copy (ASCII transliteration, core font). test_i18n builds both catalogs with gencat and checks File/Datei, Send/Senden and the fallback; the German run under Xvfb shows Datei/Bearbeiten/Ansicht/Konversation/Hilfe, In der Naehe and Senden (screenshot build/mcde-shots/dtchat-t104-de.png) and the smoke stays green. Dynamic formatted statuses are partly still English. The in-tree build is pending: a foreign release chain holds the lock (pid 141722).
dtchat.man documents the window and headless modes, --local/--config/--listen/--peer/--downloads, pairing, files, the state directory, DTCHAT_TLS_CA and examples; it renders with groff -man. README.adapters is the short contract for adapter authors: hello and settings schema, commands, events, requests, errors/restart, security and testing, with a Python skeleton. MCDE-PROGRAMS gets a usage paragraph and the document pointers. The man page is not installed yet; T10.6 adds man_MANS and the PLIST line together.
Security review findings: (1) the local peer identity was only a claimed pin; the listener now requests the client certificate and compares the certificate hash that completed the handshake with the pin in hello, refusing a mismatch or a missing certificate, and the client presents its identity certificate (test_local uses real identities: matching, other identity, any). (2) unpaired peers could send file offers; the UI manager carries a paired flag, answers offers from unpaired peers with file-reject 'pairing required' and refuses to send. The review document lists both fixes and the accepted limits (no passphrase, public pins, media nonces later, adapter spawn, file names, QR, parser limits). Standalone: test_local, test_filexfer, tests/p2p.sh and the UI pairing/message run pass with the changes. The in-tree build is pending because another release chain holds the lock (pid 4040149).
Builds 50 conversations with 200 messages each (10 000 lines), maps the window, selects the last room and prints startup, selection, CPU, RSS, PSS and max RSS. Standalone run under Xvfb: startup 76.8 ms, selection 44.6 ms, CPU 81.1 ms, RSS 13.3 MB, PSS 7.4 MB, max RSS 12.6 MB (the 8 MB PSS target holds). The in-tree build of the flag is pending: a new foreign release/sourcesets/usb chain took the lock (pid 4040149).
Xvfb without a window manager leaves the area under a closed SAS/offer dialog unpainted; localui.c clears and exposes the main shell after destroying the dialog. make mcde-host exit=0 after the change; the built UI + headless pairing/message run still passes.
localui.c starts the identity, listener, --peer links, pin store and the transfers from the UI: Nearby comes from DcPeers, messages become conversations of the Local peers account, the send hook routes by peer id, the file hooks use the offer dialog and DcFileSend/DcFileRecv with the Xt timer pumping the DcLoop. An unknown pin shows the 6-digit SAS dialog; Codes match stores the pin in peers.json, Reject (or a changed pin) blocks and closes. main.c gains --local/--config/--listen/--peer/--downloads. End-to-end test: a headless peer connected, the dialog was accepted, the pin stored and 'hello ui' appeared in the transcript (screenshot dtchat-t58-pair.png). make mcde-host still blocked by pid 2126511.
ui_file.c adds the incoming-file dialog (peer, name, human size; Accept/Reject, close counts as reject) and a Motif file selection box for sending to the selected Nearby peer. Conversation > Send File now opens it when a peer is selected and reports 'local mode is not connected' without a manager; the UI exposes dtchat_ui_set_file_send() for the local manager. The smoke opens and destroys the offer dialog. Standalone Motif build and both Xvfb smokes PASS. The transfer wiring (localui) is still open. make mcde-host still blocked by pid 2126511 (sourcesets, ~35 min).
The roster now starts with the local peers from DcPeers (presence mark, blocked note), selecting one shows identity, fingerprint, address and state in the transcript, and a double-click opens the peer dialog with the Blocked toggle (applied at once via dc_peer_set_blocked). The demo model drops its old Nearby account in favour of two synthetic peers; --smoke-test selects alice-id, checks the fingerprint in the transcript and opens/closes the dialog. Standalone Motif build and both Xvfb smokes PASS; screenshot build/mcde-shots/dtchat-t58.png. The file send/receive part of T5.8 is still open. make mcde-host still blocked by pid 2126511 (sourcesets, 31 min).
dtchat-headless starts the TLS listener (--listen [HOST:]PORT, port 0 prints the real port) and one reconnecting link per --peer, loads/creates the identity in --config, prints JSON events (ready, peer-online, peer-offline, message, typing, file-offer, error) and takes JSON commands on stdin (send by host:port or peer id, quit). dc_local_peer_conn() and the ack id let a link know its peer. tests/p2p.sh runs two instances over loopback: A listens, B connects, B sends, A answers by id, both quit; standalone run prints 'tests/p2p.sh: all ok'. Wired into noinst_PROGRAMS and mcde-tests.sh (expect 29 ok). make mcde-host still blocked by pid 2126511 (release/sourcesets/usb).
The build failed at both links: dtchat-ui_accounts.o called dc_json_array_get from libDtChatIpc.so (DSO missing from the command line) and dtchat-irc called dc_irc_parse/split from libDtChat.so. Both programs now name both libraries. make mcde-host exit=0; tools/mcde-tests.sh 24 ok/0 bad; built dtchat --smoke-test and --demo --smoke-test PASS; the built dtchat-irc passes all five fake-server suites (plain, channels, messages, TLS/SASL, reconnect).
A dropped socket or ERROR now schedules a reconnect with 2, 4, 8 ... 60 s backoff (reset on 001) and the process stays alive; the 433 collision appends '_' up to three times before giving up; SASL 904/905/906 sends a fatal auth error and a bye and exits; the connect timeout is 5 s per address and TLS errors are reported as code tls. Fake servers: reconnect after a drop (offline, second connection, same nick, same pid) and 433 -> NICK tester_ -> online both pass; plain, channel and message suites still pass. make mcde-host still blocked by pid 1207058.
libtls (installed libtls-dev 3.8.1 on the build host) now wraps the socket: blocking handshake with a 10 s timeout, then nonblocking tls_read/tls_write with WANT_POLLIN/OUT handling; DTCHAT_TLS_CA allows a test or private CA. The adapter sends CAP LS 302, requests sasl when the server offers it and a password exists, answers AUTHENTICATE + with the PLAIN base64 payload, ends CAP on 903/904 and reports auth errors. configure checks libtls and passes -DHAVE_LIBTLS/-ltls; without libtls a tls:true account gets a clear error. The TLS fake server passes both cases: handshake + CAP REQ + AUTHENTICATE + CAP END + online + JOIN, and wrong password -> auth error. Plain/channel/message tests still pass; make mcde-host still blocked by pid 1207058.
Incoming PRIVMSG/NOTICE become text/notice messages, CTCP ACTION becomes an action message and direct messages open a direct conversation. dc_irc_split_next() splits at UTF-8 boundaries, prefers spaces and always breaks at newlines; the adapter budgets 512 bytes per PRIVMSG line. Sends go through a 128-line queue with a 4-message burst and 2 messages/s, pumped from the poll timeout. test_irc covers the splitter (ASCII, multibyte, over-wide character, newlines, empty); the fake-server test passes 19/19 with three chunks rejoining exactly, every line <= 512 bytes and a 0.50s max gap under flood. make mcde-host still blocked by pid 1207058.
The adapter keeps a channel/member table: JOIN/NAMES/MODE/TOPIC/PART/QUIT/KICK/NICK update it and emit conversation, roster, presence and system messages. After 001 it joins the configured channels. The fake-server sequence (353 names with @/+ modes, JOIN, MODE +o, TOPIC, PART, QUIT, NICK) passes 21/21 checks: JOIN sent, conversation and topic, modes, rename, online/offline presence and the system lines. make mcde-host still blocked by pid 1207058 (sourcesets/usb).
lib/libDtChat/irc.c parses IRCv3 tags, the prefix, the command, up to 15 parameters and the trailing text into a DcIrcMessage; NUL in the line, a missing command, more than 15 parameters and lines over 1 MiB are clean errors. test_irc covers PRIVMSG, tags+prefix, 001/005/353, PING, MODE, CAP, an empty trailing, repeated spaces, the error cases and 1 MiB of rubbish; all ok and ASan/UBSan clean. The IRC adapter now routes PING/001/ERROR/433 through the parser; the fake-server harness still passes 13/13. Added test_irc to tools/mcde-tests.sh. make mcde-host still held by another agent's sourcesets/usb build (pid 1207058).
dtchat-irc speaks protocol v1 on stdio: hello with the six-field schema (host, port, tls, nick, password, channels), configure, connect, non-blocking getaddrinfo/connect, NICK/USER, PING/PONG, state connecting/online/offline and PRIVMSG on send. TLS, CAP, SASL, channels and the full parser are T3.2-T3.6; tls:true gets a clear non-fatal error instead of a silent plain connection. Verified against a local fake IRC server: 13/13 checks (schema, connecting, online after prefixed 001, NICK/USER, PONG, PRIVMSG, bye, exit 0, empty stderr). Built as noinst dtchat-irc; make mcde-host still waits for the lock.
The input handler intercepts unshifted Enter (send), Up/Down (64-entry send history with a saved draft), Tab (complete the current word from the conversation's senders, system lines skipped) and Esc (clear). Shift+Enter keeps XmText's newline. The smoke test checks Tab 'al' -> 'alice ', Up/Up/Down/Down through two sends, the draft round trip and Esc; xdotool under Xvfb confirmed Tab and Up in the real widget. Plain and demo smokes PASS; screenshot build/mcde-shots/dtchat-t28.png. make mcde-host still blocked by the build lock.
programs/types/dtchat.dt defines ACTION Dtchat (Chat, icon Dtchat, EXEC dtchat, NO_STDIO) and is merged into every locale through the types template; Internet/Dtchat joins the App-Manager list. Three icon sizes (16/32/48) draw a speech bubble with three dots. Dtchat app-defaults install into app-defaults/C with the fixed fonts and 760x540 geometry, and dtchat.msg builds a dtchat.cat catalog for the UI strings. The action was executed through dtaction with DTDATABASESEARCHPATH (a test copy wrote its marker file), and the icons decode as XPM. make mcde-host is still waiting for the build lock (pid 1207058).
demo_adapter.c is a real child process speaking protocol v1 (hello with a nick schema, connect opens lobby, send echoes as 'echo', /code asks for a code, answer reports it, disconnect says bye). demo.c owns the DcLoop, pumps it from a 40 ms Xt timeout, applies state/conversation/message/request/error/bye to the model and the UI, and routes sends through dtchat_ui_set_send_hook. --demo uses an empty model plus the adapter; --adapter overrides the path; --demo --smoke-test checks online, selection, a real send round trip and the echoed text. The transcript now word-wraps: XmText's XmNscrollHorizontal is a secondary resource and must be set in the creation arg list, and the text is fitted to the viewport on ConfigureNotify (the horizontal bar is unmanaged). Standalone plain and demo smoke PASS; /code answered with 4242 shows '-demo- answered: 4242'; screenshot build/mcde-shots/dtchat-t26.png. make mcde-host blocked again: build/.build.lock is held by another agent's distfiles fetch (pid 815951).
Command+Tab raised and focused the next program at once, but the bar closed
by a five-second timer: holding Command longer made it vanish, and letting
Command go did not close it. The bar now stays as long as Command is held:
dtwm grabs the keyboard while it is up (the Mod4 keycodes come from the
modifier map), KeyRelease of a Command key is looked at in WmMain before the
generic dispatch (McdeSwitcherEvent), and it hides and ungrabs at once. A
long timer (60 s) only covers a grab that failed or a release that never
came; without the grab the old five-second flash stays.
Repeated Tab while held walks on, Shift+Command+Tab goes back; the chosen
program is raised and focused on every press (unchanged). MCDE_SW_DEBUG=1
prints the grab and the key events.
Measured on an out-of-tree copy of the configured build (the tree's build
lock was held by another session's release/distfiles run): make dtwm linked
the changed sources, and under Xvfb :93 with two xterms
- keydown Super_L, Tab: the bar "MCDE Switcher" is IsViewable;
- after 7 s still held: IsViewable (the old code hid at 5 s);
- Tab again, keyup Super_L: IsUnMapped within 0.5 s, focus on the chosen
xterm; the debug log shows the grab with keycodes 133 134 206 and the
release of 133 closing it.
The official make mcde-linux and the install into /usr/mdt follow when the
build lock is free; the change touches only dtwm. AGENTS.md describes the
behavior.
ui_request.c turns one adapter request object into a Motif dialog: code, password (masked via modifyVerify, the real value kept out of the widget), notice, confirm and qr. The QR bitmap is base64 (one byte per module), drawn into a depth-1 pixmap and shown as XmNlabelPixmap; no QR library. The answer is delivered exactly once from OK/Yes/No, Cancel, the timeout or the window-manager close, and the dialog frees itself before the callback runs. dtchat_error_dialog is the one-button error/notice window. The smoke test exercises all five kinds plus the timeout; --demo-request qr|code|password|error shows one for screenshots. Standalone smoke PASS; QR and masked password verified on Xvfb (build/mcde-shots/dtchat-t25.png). make mcde-host still blocked by the foreign release build holding build/.build.lock (pid 175328).
ui_accounts.c builds the account list and a settings form from the adapter schema: text, secret, int, bool, choice, info and button. Secrets are collected into a separate JSON object and never shown; a modifyVerify callback keeps the masked text while the field stores the real value (this Motif has no XmNechoChar). Add/Delete create or remove accounts through dc_model_remove_account, Save validates required fields and numbers and updates the account label. Wired to File/Accounts... with a demo IRC schema. Standalone build clean; dialog opens on Xvfb, password masked, Save shows 'saved (demo)'; test_conv and ASan/UBSan green. make mcde-host could not run: another agent's release build holds build/.build.lock (pid 175328).
The smoke test pushes 5000 messages through the model and checks that the transcript stays at the 2000-message ring size; standalone smoke PASS in 5.2 s.
The transcript reloads from the model on selection, appends new messages via dtchat_ui_message_added (clearing unread in the active conversation), shows action and system lines, and reloads at 2000 lines. Send and Enter add a DTCHAT_MSG_SELF message to the model through dtchat_ui_send_text, clear the input and append; Shift+Enter stays a newline. The smoke test now injects a runtime message, sends text, pushes past 2000 messages, checks the view cap and verifies '* alice' / '-- bob joined'. Standalone smoke PASS and Enter path verified under Xvfb; the full make mcde-host is blocked by another agent's release build holding the lock.
DcPresence on DcConv (offline default, online/away/dnd); the roster lists accounts and conversations with presence marks and unread counts, 45 demo rooms make it scroll, selection sets the title/topic, fills the transcript from the 2000-message ring and clears unread. The demo model lives in main.c; --smoke-test selects jabber/bob@example.org and checks viewable, selection, transcript and unread==0. make mcde-host exit=0; built smoke PASS; test_conv all ok; screenshot build/mcde-shots/dtchat-t22.png; PSS 5.6 MB.
programs/dtchat: a Motif XmForm with File/Edit/View/Conversation/Help, a horizontal paned window (roster left, chat right), a read-only scrolled transcript, a three-line input, a Send button and a status line. --smoke-test maps the window, checks IsViewable and exits 0/1. Wired into configure.ac and programs/Makefile.am; only Xt/Xm/X11 are linked until T2.7 brings DtInitialize. Built smoke PASS; screenshot build/mcde-shots/dtchat-t21.png (760x540); PSS 5.5 MB (RSS 18.6 MB with the shared Xft Motif).
The Helvetica bitmaps of the reference desktops are in share/fonts: the six
IRIX x_eoe PCFs (helvB10, helvBO10, helvR10, helvR12, helvR14, helvR18) and
the twenty Solaris SUNWxwfnt PCFs (Helvetica 6..14, bold, oblique, bold
oblique); mkfontdir wrote fonts.dir.
Dtwm.defs.src sets the four fontLists of the 4Dwm app-defaults: menus and
client titles -adobe-helvetica-bold-o-normal--14-*, feedback
-adobe-helvetica-bold-r-normal--14-*, icon labels
-adobe-helvetica-medium-r-normal--14-*.
The fonts are core X11 fonts (Motif reads them): dtlogin fontPathTail
(config/Xconfig) puts share/fonts on the X server font path at session
start (ApplyFontPathMods, fontpath.c); 0070.dtfonts keeps the same for a
session that did not come through dtlogin, without a second entry.
Measured: xlsfonts -fn -adobe-helvetica-bold-o-normal--14-* returns the
IRIX 100dpi face; xrmget on the installed Dtwm app-defaults resolves the
four fontLists to the Helvetica names; a session through dtlogin lists
.../share/fonts in xset q Font Path (9 elements); mcde-plist-check ok;
docs/screenshots/desktop/dtwm-4dwm-font.png shows the dtterm title in
Helvetica Bold Oblique.
Inventory of build/logs/mcde-allerrors-2026-11-14.log (the last docs-enabled
cross build): 826 error lines, 774 of them Error 127 (a target binary run on
the build host). The tools that were not found: instant 654 calls,
dtcodegen 44, tt_type_comp 18, dtdocbook2infolib 14; 50 Error 1 come from the
parser's missing context.h (the generators had not run), 2 from XDONE.
instant is the SGML converter for both help volumes and man pages, so it is
the next block.
This block is the dthelp parser's own generators: pass1, canon1 and pass2
run "build" and "eltdef" while the parser is compiled, and they must run on
the build host. Each of their directories now compiles for the host (CC,
CPPFLAGS, CFLAGS, LDFLAGS from the *_FOR_BUILD values AM_MAKEFLAGS forwards,
the same pattern as util/tradcpp and dtinfo/tools/misc), and links a new
libutil_host.a built in util/ with CC_FOR_BUILD from the same sources as the
target libutil.a (context/fclndir had that already; libutil.a stays target
for the installed parser programs).
Measured: make -C build/mcde-linux/programs/dthelp/parser clean, then
make mcde-linux MCDE_DIRS="programs/dthelp/parser": exit=0, 0 Error lines;
the log shows "ar cru libutil_host.a", "./build < .../hptag.dtd",
"./eltdef ../helptag/help.if"; BDONE and EDONE are written; file(1) says
pass1/build/build, pass1/eltdef/eltdef, pass2/build/build and
pass2/eltdef/eltdef are x86-64 Linux ELF; the generated Makefile carries
"CC = $(CC_FOR_BUILD)" after the configured CC.
Still open for t0230: instant, dtdocbook2infolib and the pass1/2 parser
(dthelp_htag2, run by dtdocbook2sdl) as host tools, then turn docs on in
tools/pkgsrc-cross.mk.conf; man pages follow instant; dtappbuilder's
dtcodegen and tt_type_comp are their own blocks.
With focus-follows-pointer (sys.resources: Dtwm*keyboardFocusPolicy: pointer)
a move from a terminal straight onto a desktop icon or onto dtbar kept the
terminal as the keyboard focus: the icon windows did not select EnterNotify,
and McdeDesktopEvent returns True for every event of an icon, so the
workspace's root/backdrop enter path (HandleWsEnterNotify -> Do_Focus_Key
(NULL)) never ran. The bar is a window of its own and dtwm does not focus
it, so hovering it changed nothing either.
- WmMcdeDesktop.c: the icon windows select EnterWindowMask, and their
EnterNotify calls Do_Focus_Key(NULL, time, ALWAYS_SET_FOCUS) -- the focus
goes to the pointer root and dtwm clears the active client.
- dtbar.c: the shell already had EnterWindowMask for the menu refresh; on a
normal enter it now sets the input focus to PointerRoot unless the root or
the bar already has it. A menu's grab (NotifyGrab) is left alone, so
keyboard menu handling is untouched.
Measured under Xvfb :89 (1024x768, pointer policy, Toronto backdrop, dtbar,
two xterms at +56+126 and +406+326):
- before: xterm A -> bar kept xterm A; xterm B -> Computer icon kept xterm B.
- after: A -> icon focus 1 (PointerRoot), B -> icon 1, A -> bar 1,
B -> backdrop 1; hovering A or B again focuses that xterm; the front panel
still takes the focus itself, and the client loses it (unchanged).
make mcde-linux MCDE_DIRS="install programs/dtwm programs/dtbar" exit=0;
"check programs/dtbar" 1 PASS, 0 FAIL; MCDE_DIRS=plist
"mcde-plist-check: ok".
AGENTS.md: the window/focus paragraph says what an icon or the bar now does.
dtsession starts mcdesoundd at login (config/0075.mcdesoundd) and the daemon
dies with the session; the two theme events Start and End were never played.
Now the daemon plays Start as soon as it owns _MCDE_SOUND_SERVER, and End in
an X I/O error handler: at logout dtlogin resets the X server, the daemon's
connection dies there, it forks the player (which outlives it) and exits.
Both go through the theme (MCDE_SOUND_THEME), not a fixed file; the path does
not need X, so it works in the I/O error handler.
Measured (Xvfb :86, installed Base theme, PULSE_SINK on a private null sink in
the running PulseAudio -- no sound on the real sink):
- start: "mcdesoundd: theme .../themes/Base" and
"mcdesoundd: Start -> .../themes/Base/start.wav (player)".
- kill the Xvfb (the server reset at logout):
"mcdesoundd: End -> .../themes/Base/end.wav (player)", and the daemon is
gone (only the session's own daemon remains).
make mcde-linux MCDE_DIRS="install programs/mcdesoundd" exit=0;
MCDE_DIRS=plist "mcde-plist-check: ok".
The AX_* events of the same task (AccessX and the Keyboard pane) are not in
this commit; t0043 stays open for them.